X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-sh64%2Fsystem.h;h=5ff94644e8c87f4c47c0a24d5c539a9edcb07231;hb=5dc12ddee93d63d7107cbbf70db23476d7b30e43;hp=87ef6f1ad5a47f5e2df6f941439ff30d5a113eb8;hpb=4bf311ddfbffe12d41ad1a3c311ab727db6f72cb;p=powerpc.git diff --git a/include/asm-sh64/system.h b/include/asm-sh64/system.h index 87ef6f1ad5..5ff94644e8 100644 --- a/include/asm-sh64/system.h +++ b/include/asm-sh64/system.h @@ -43,8 +43,6 @@ extern struct task_struct *sh64_switch_to(struct task_struct *prev, #define xchg(ptr,x) ((__typeof__(*(ptr)))__xchg((unsigned long)(x),(ptr),sizeof(*(ptr)))) -#define tas(ptr) (xchg((ptr), 1)) - extern void __xchg_called_with_bad_pointer(void); #define mb() __asm__ __volatile__ ("synco": : :"memory") @@ -64,7 +62,7 @@ extern void __xchg_called_with_bad_pointer(void); #define smp_read_barrier_depends() do { } while (0) #endif /* CONFIG_SMP */ -#define set_rmb(var, value) do { xchg(&var, value); } while (0) +#define set_rmb(var, value) do { (void)xchg(&var, value); } while (0) #define set_mb(var, value) set_rmb(var, value) /* Interrupt Control */