uatomic.h | uatomic.h | |||
---|---|---|---|---|
skipping to change at line 537 | skipping to change at line 537 | |||
sizeof(*(addr)))) | sizeof(*(addr)))) | |||
extern unsigned long _compat_uatomic_cmpxchg(void *addr, unsigned long old, | extern unsigned long _compat_uatomic_cmpxchg(void *addr, unsigned long old, | |||
unsigned long _new, int len); | unsigned long _new, int len); | |||
#define compat_uatomic_cmpxchg(addr, old, _new) \ | #define compat_uatomic_cmpxchg(addr, old, _new) \ | |||
((__typeof__(*(addr))) _compat_uatomic_cmpxchg((addr), \ | ((__typeof__(*(addr))) _compat_uatomic_cmpxchg((addr), \ | |||
(unsigned long)(old), \ | (unsigned long)(old), \ | |||
(unsigned long)(_new), \ | (unsigned long)(_new), \ | |||
sizeof(*(addr)))) | sizeof(*(addr)))) | |||
extern unsigned long _compat_uatomic_and(void *addr, | extern void _compat_uatomic_and(void *addr, unsigned long _new, int len); | |||
unsigned long _new, int len); | ||||
#define compat_uatomic_and(addr, v) \ | #define compat_uatomic_and(addr, v) \ | |||
((__typeof__(*(addr))) _compat_uatomic_and((addr), \ | (_compat_uatomic_and((addr), \ | |||
(unsigned long)(v), \ | (unsigned long)(v), \ | |||
sizeof(*(addr)))) | sizeof(*(addr)))) | |||
extern unsigned long _compat_uatomic_or(void *addr, | extern void _compat_uatomic_or(void *addr, unsigned long _new, int len); | |||
unsigned long _new, int len); | ||||
#define compat_uatomic_or(addr, v) \ | #define compat_uatomic_or(addr, v) \ | |||
((__typeof__(*(addr))) _compat_uatomic_or((addr), \ | (_compat_uatomic_or((addr), \ | |||
(unsigned long)(v), \ | (unsigned long)(v), \ | |||
sizeof(*(addr)))) | sizeof(*(addr)))) | |||
extern unsigned long _compat_uatomic_add_return(void *addr, | extern unsigned long _compat_uatomic_add_return(void *addr, | |||
unsigned long _new, int len) ; | unsigned long _new, int len) ; | |||
#define compat_uatomic_add_return(addr, v) | #define compat_uatomic_add_return(addr, v) \ | |||
\ | ((__typeof__(*(addr))) _compat_uatomic_add_return((addr), \ | |||
((__typeof__(*(addr))) _compat_uatomic_add_return((addr), | (unsigned long)(v), \ | |||
\ | sizeof(*(addr)))) | |||
(unsigned long)(v), | ||||
\ | ||||
sizeof(*(addr)))) | ||||
#define compat_uatomic_add(addr, v) \ | #define compat_uatomic_add(addr, v) \ | |||
((void)compat_uatomic_add_return((addr), (v))) | ((void)compat_uatomic_add_return((addr), (v))) | |||
#define compat_uatomic_inc(addr) \ | #define compat_uatomic_inc(addr) \ | |||
(compat_uatomic_add((addr), 1)) | (compat_uatomic_add((addr), 1)) | |||
#define compat_uatomic_dec(addr) \ | #define compat_uatomic_dec(addr) \ | |||
(compat_uatomic_add((addr), -1)) | (compat_uatomic_add((addr), -1)) | |||
#else | #else | |||
#define UATOMIC_COMPAT(insn) (_uatomic_##insn) | #define UATOMIC_COMPAT(insn) (_uatomic_##insn) | |||
End of changes. 5 change blocks. | ||||
17 lines changed or deleted | 12 lines changed or added | |||