public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] arch: m32r: include: asm: add generic cmpxchg64() definition
@ 2013-06-27  2:14 Chen Gang
  0 siblings, 0 replies; only message in thread
From: Chen Gang @ 2013-06-27  2:14 UTC (permalink / raw)
  To: Hirokazu Takata
  Cc: linux-m32r, linux-m32r-ja, linux-kernel@vger.kernel.org,
	Linux-Arch

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]

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 arch/m32r/include/asm/cmpxchg.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/m32r/include/asm/cmpxchg.h b/arch/m32r/include/asm/cmpxchg.h
index de651db..a188b03 100644
--- a/arch/m32r/include/asm/cmpxchg.h
+++ b/arch/m32r/include/asm/cmpxchg.h
@@ -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 */
-- 
1.7.7.6

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-06-27  2:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-27  2:14 [PATCH] arch: m32r: include: asm: add generic cmpxchg64() definition Chen Gang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox