From: Mathieu Desnoyers Date: Tue, 22 Sep 2009 22:52:40 +0000 (-0400) Subject: remove volatile from prototypes in atomic code X-Git-Tag: v0.1~49 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=5eb3201d7a7dc40f01269eefa23a681473579ebc;p=urcu.git remove volatile from prototypes in atomic code Signed-off-by: Mathieu Desnoyers --- diff --git a/arch_atomic_ppc.h b/arch_atomic_ppc.h index 16ddc01..d696e26 100644 --- a/arch_atomic_ppc.h +++ b/arch_atomic_ppc.h @@ -53,7 +53,7 @@ do { \ /* xchg */ static __attribute__((always_inline)) -unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) +unsigned long _atomic_exchange(void *addr, unsigned long val, int len) { switch (len) { case 4: @@ -103,7 +103,7 @@ unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) /* cmpxchg */ static __attribute__((always_inline)) -unsigned long _atomic_cmpxchg(volatile void *addr, unsigned long old, +unsigned long _atomic_cmpxchg(void *addr, unsigned long old, unsigned long _new, int len) { switch (len) { @@ -163,7 +163,7 @@ unsigned long _atomic_cmpxchg(volatile void *addr, unsigned long old, /* atomic_add_return */ static __attribute__((always_inline)) -unsigned long _atomic_add_return(volatile void *addr, unsigned long val, +unsigned long _atomic_add_return(void *addr, unsigned long val, int len) { switch (len) { diff --git a/arch_atomic_x86.h b/arch_atomic_x86.h index 879ce70..3eedc3f 100644 --- a/arch_atomic_x86.h +++ b/arch_atomic_x86.h @@ -47,7 +47,7 @@ do { \ /* cmpxchg */ static inline __attribute__((always_inline)) -unsigned long _atomic_cmpxchg(volatile void *addr, unsigned long old, +unsigned long _atomic_cmpxchg(void *addr, unsigned long old, unsigned long _new, int len) { switch (len) { @@ -112,7 +112,7 @@ unsigned long _atomic_cmpxchg(volatile void *addr, unsigned long old, /* xchg */ static inline __attribute__((always_inline)) -unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) +unsigned long _atomic_exchange(void *addr, unsigned long val, int len) { /* Note: the "xchg" instruction does not need a "lock" prefix. */ switch (len) { @@ -172,7 +172,7 @@ unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) /* atomic_add_return, atomic_sub_return */ static inline __attribute__((always_inline)) -unsigned long _atomic_add_return(volatile void *addr, unsigned long val, +unsigned long _atomic_add_return(void *addr, unsigned long val, int len) { switch (len) { @@ -239,7 +239,7 @@ unsigned long _atomic_add_return(volatile void *addr, unsigned long val, /* atomic_add, atomic_sub */ static inline __attribute__((always_inline)) -void _atomic_add(volatile void *addr, unsigned long val, int len) +void _atomic_add(void *addr, unsigned long val, int len) { switch (len) { case 1: @@ -296,7 +296,7 @@ void _atomic_add(volatile void *addr, unsigned long val, int len) /* atomic_inc */ static inline __attribute__((always_inline)) -void _atomic_inc(volatile void *addr, int len) +void _atomic_inc(void *addr, int len) { switch (len) { case 1: @@ -349,7 +349,7 @@ void _atomic_inc(volatile void *addr, int len) /* atomic_dec */ static inline __attribute__((always_inline)) -void _atomic_dec(volatile void *addr, int len) +void _atomic_dec(void *addr, int len) { switch (len) { case 1: