All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sparc64: Provide cmpxchg64()
@ 2013-03-20 14:35 ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-03-20 14:35 UTC (permalink / raw)
  To: David S. Miller; +Cc: sparclinux, linux-next, Geert Uytterhoeven

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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/sparc/include/asm/cmpxchg_64.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/cmpxchg_64.h b/arch/sparc/include/asm/cmpxchg_64.h
index b30eb37..4adefe8 100644
--- a/arch/sparc/include/asm/cmpxchg_64.h
+++ b/arch/sparc/include/asm/cmpxchg_64.h
@@ -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__ */
-- 
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] sparc64: Provide cmpxchg64()
@ 2013-03-20 14:35 ` Geert Uytterhoeven
  0 siblings, 0 replies; 4+ messages in thread
From: Geert Uytterhoeven @ 2013-03-20 14:35 UTC (permalink / raw)
  To: David S. Miller; +Cc: sparclinux, linux-next, Geert Uytterhoeven

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.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 arch/sparc/include/asm/cmpxchg_64.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/sparc/include/asm/cmpxchg_64.h b/arch/sparc/include/asm/cmpxchg_64.h
index b30eb37..4adefe8 100644
--- a/arch/sparc/include/asm/cmpxchg_64.h
+++ b/arch/sparc/include/asm/cmpxchg_64.h
@@ -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__ */
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] sparc64: Provide cmpxchg64()
  2013-03-20 14:35 ` Geert Uytterhoeven
@ 2013-03-20 18:42   ` David Miller
  -1 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-03-20 18:42 UTC (permalink / raw)
  To: geert; +Cc: sparclinux, linux-next

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: Wed, 20 Mar 2013 15:35:04 +0100

> 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.
> 
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Applied to sparc-next, thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] sparc64: Provide cmpxchg64()
@ 2013-03-20 18:42   ` David Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2013-03-20 18:42 UTC (permalink / raw)
  To: geert; +Cc: sparclinux, linux-next

RnJvbTogR2VlcnQgVXl0dGVyaG9ldmVuIDxnZWVydEBsaW51eC1tNjhrLm9yZz4NCkRhdGU6IFdl
ZCwgMjAgTWFyIDIwMTMgMTU6MzU6MDQgKzAxMDANCg0KPiBzcGFyYzY0IGFsbG1vZGNvbmZpZzoN
Cj4gDQo+IGRyaXZlcnMvYmxvY2svYmxvY2tjb25zb2xlLmM6IEluIGZ1bmN0aW9uIKFiY29uX2Fk
dmFuY2VfY29uc29sZV9ieXRlc6I6DQo+IGRyaXZlcnMvYmxvY2svYmxvY2tjb25zb2xlLmM6MTY0
OiBlcnJvcjogaW1wbGljaXQgZGVjbGFyYXRpb24gb2YgZnVuY3Rpb24goWNtcHhjaGc2NKINCj4g
DQo+IE1hcCBjbXB4Y2hnNjQoKSB0byBjbXB4Y2hnNjRfbG9jYWwoKSAod2hpY2ggZXZlbnR1YWxs
eSBjYWxscw0KPiBfX2NtcHhjaGdfdTY0KCkpIHRvIGZpeCB0aGlzLg0KPiANCj4gU2lnbmVkLW9m
Zi1ieTogR2VlcnQgVXl0dGVyaG9ldmVuIDxnZWVydEBsaW51eC1tNjhrLm9yZz4NCg0KQXBwbGll
ZCB0byBzcGFyYy1uZXh0LCB0aGFua3MuDQo

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-03-20 18:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-20 14:35 [PATCH] sparc64: Provide cmpxchg64() Geert Uytterhoeven
2013-03-20 14:35 ` Geert Uytterhoeven
2013-03-20 18:42 ` David Miller
2013-03-20 18:42   ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.