arm64: fix unreachable code issue with cmpxchg
[linux-2.6-block.git] / arch / arm64 / include / asm / cmpxchg.h
index a1398f2f9994fcdc0e110731feffa550ab765964..f9bef42c1411af12a10c79c7087994a77a752542 100644 (file)
@@ -62,7 +62,7 @@ __XCHG_CASE( ,  ,  mb_, 64, dmb ish, nop,  , a, l, "memory")
 #undef __XCHG_CASE
 
 #define __XCHG_GEN(sfx)                                                        \
-static inline unsigned long __xchg##sfx(unsigned long x,               \
+static __always_inline  unsigned long __xchg##sfx(unsigned long x,     \
                                        volatile void *ptr,             \
                                        int size)                       \
 {                                                                      \
@@ -148,7 +148,7 @@ __CMPXCHG_DBL(_mb)
 #undef __CMPXCHG_DBL
 
 #define __CMPXCHG_GEN(sfx)                                             \
-static inline unsigned long __cmpxchg##sfx(volatile void *ptr,         \
+static __always_inline unsigned long __cmpxchg##sfx(volatile void *ptr,        \
                                           unsigned long old,           \
                                           unsigned long new,           \
                                           int size)                    \
@@ -255,7 +255,7 @@ __CMPWAIT_CASE( ,  , 64);
 #undef __CMPWAIT_CASE
 
 #define __CMPWAIT_GEN(sfx)                                             \
-static inline void __cmpwait##sfx(volatile void *ptr,                  \
+static __always_inline void __cmpwait##sfx(volatile void *ptr,         \
                                  unsigned long val,                    \
                                  int size)                             \
 {                                                                      \