Skip to contentSkip to conversation

arch: m32r: include: asm: add generic cmpxchg64() definition

PATCH New Chen Gang 1 participant 1 message Jun 27, 2013 Generic include/asm header files

lore
Share & tools
lore

Chen Gang

author
#0 lore raw

PATCH 1/1 arch: m32r: include: asm: add generic cmpxchg64() definition

Need define cmpxchg64(), so use generic one.

The related error (with allmodconfig):

drivers/block/blockconsole.c: In function ‘bcon_advance_console_bytes’:
drivers/block/blockconsole.c:164:2: error: implicit declaration of function ‘cmpxchg64’ [-Werror=implicit-function-declaration]

---
 arch/m32r/include/asm/cmpxchg.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/m32r/include/asm/cmpxchg.h +1 -0
index de651db..a188b03 100644
@@ -217,5 +217,6 @@ static inline unsigned long __cmpxchg_local(volatile void *ptr,
 	((__typeof__(*(ptr)))__cmpxchg_local((ptr), (unsigned long)(o),	    \
 			(unsigned long)(n), sizeof(*(ptr))))
 #define cmpxchg64_local(ptr, o, n) __cmpxchg64_local_generic((ptr), (o), (n))
+#define cmpxchg64(ptr, o, n)	cmpxchg64_local((ptr), (o), (n))
 
 #endif /* _ASM_M32R_CMPXCHG_H */
Signature · 1 line
1.7.7.6