projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
aarch64: allocate membarrier system call number
[urcu.git]
/
urcu
/
uatomic
/
x86.h
diff --git
a/urcu/uatomic/x86.h
b/urcu/uatomic/x86.h
index ce1ce5e9b48b75f193d9c80f81977c2005888492..a139228346cb64b5eed2425f0d71f8f78f58e9dc 100644
(file)
--- a/
urcu/uatomic/x86.h
+++ b/
urcu/uatomic/x86.h
@@
-39,7
+39,7
@@
struct __uatomic_dummy {
};
#define __hp(x) ((struct __uatomic_dummy *)(x))
};
#define __hp(x) ((struct __uatomic_dummy *)(x))
-#define _uatomic_set(addr, v)
CMM_STORE_SHARED(*(addr), (v
))
+#define _uatomic_set(addr, v)
((void) CMM_STORE_SHARED(*(addr), (v)
))
/* cmpxchg */
/* cmpxchg */
@@
-529,12
+529,16
@@
extern int __rcu_cas_init(void);
: (compat_uatomic_##insn)) \
: (compat_uatomic_##insn))))
: (compat_uatomic_##insn)) \
: (compat_uatomic_##insn))))
+/*
+ * We leave the return value so we don't break the ABI, but remove the
+ * return value from the API.
+ */
extern unsigned long _compat_uatomic_set(void *addr,
unsigned long _new, int len);
#define compat_uatomic_set(addr, _new) \
extern unsigned long _compat_uatomic_set(void *addr,
unsigned long _new, int len);
#define compat_uatomic_set(addr, _new) \
- ((
__typeof__(*(addr))) _compat_uatomic_set((addr),
\
-
caa_cast_long_keep_sign(_new),
\
-
sizeof(*(addr))))
+ ((
void) _compat_uatomic_set((addr),
\
+
caa_cast_long_keep_sign(_new),
\
+ sizeof(*(addr))))
extern unsigned long _compat_uatomic_xchg(void *addr,
extern unsigned long _compat_uatomic_xchg(void *addr,
This page took
0.023299 seconds
and
4
git commands to generate.