X-Git-Url: https://git.lttng.org/?p=urcu.git;a=blobdiff_plain;f=arch_atomic_x86.h;h=f471a393960d009587e2a6d0b0d8eb25f158683f;hp=8423ae3f9e0e71bb5d3039f9eeabab082db4f96f;hb=538d7df5086144837beb7a9c1e2a94eb637b9904;hpb=33211b37023dac96a3e7a9fdf895c4810d14d585 diff --git a/arch_atomic_x86.h b/arch_atomic_x86.h index 8423ae3..f471a39 100644 --- a/arch_atomic_x86.h +++ b/arch_atomic_x86.h @@ -30,7 +30,7 @@ * Derived from AO_compare_and_swap() and AO_test_and_set_full(). */ -static __attribute__((always_inline)) +static inline __attribute__((always_inline)) unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val) { unsigned int result; @@ -47,7 +47,7 @@ unsigned int atomic_exchange_32(volatile unsigned int *addr, unsigned int val) #if (BITS_PER_LONG == 64) -static __attribute__((always_inline)) +static inline __attribute__((always_inline)) unsigned long atomic_exchange_64(volatile unsigned long *addr, unsigned long val) { @@ -65,7 +65,7 @@ unsigned long atomic_exchange_64(volatile unsigned long *addr, #endif -static __attribute__((always_inline)) +static inline __attribute__((always_inline)) unsigned long _atomic_exchange(volatile void *addr, unsigned long val, int len) { switch (len) {