Skip to contentSkip to conversation

sparc64: Provide cmpxchg64()

PATCH Applied Geert Uytterhoeven 2 participants 2 messages Mar 20, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sparc64: Provide cmpxchg64()

sparc64 allmodconfig:

drivers/block/blockconsole.c: In function ‘bcon_advance_console_bytes’:
drivers/block/blockconsole.c:164: error: implicit declaration of function ‘cmpxchg64’

Map cmpxchg64() to cmpxchg64_local() (which eventually calls __cmpxchg_u64()) to fix this.

---
 arch/sparc/include/asm/cmpxchg_64.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/sparc/include/asm/cmpxchg_64.h +1 -0
index b30eb37..4adefe8 100644
@@ -141,5 +141,6 @@ static inline unsigned long __cmpxchg_local(volatile void *ptr,
 	BUILD_BUG_ON(sizeof(*(ptr)) != 8);				\
 	cmpxchg_local((ptr), (o), (n));					\
   })
+#define cmpxchg64(ptr, o, n)	cmpxchg64_local((ptr), (o), (n))
 
 #endif /* __ARCH_SPARC64_CMPXCHG__ */
Signature · 6 lines
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
maintainer Applied
#1 lore raw

From: Geert Uytterhoeven <[email protected]>
Date: Wed, 20 Mar 2013 15:35:04 +0100

Quoted 9 lines

sparc64 allmodconfig:

drivers/block/blockconsole.c: In function ‘bcon_advance_console_bytes’:
drivers/block/blockconsole.c:164: error: implicit declaration of function ‘cmpxchg64’

Map cmpxchg64() to cmpxchg64_local() (which eventually calls __cmpxchg_u64()) to fix this.

Applied to sparc-next, thanks.