Linux-m68k Archive on
 help / color / Atom feed
* [PATCH 4/5] m68k: use asm-generic cmpxchg_local()
@ 2020-06-15  6:42 Greg Ungerer
  0 siblings, 0 replies; only message in thread
From: Greg Ungerer @ 2020-06-15  6:42 UTC (permalink / raw)
  To: linux-m68k; +Cc: Greg Ungerer

Use the asm-generic version of the cmpxchg_local() macro. Although not
all target types use asm-generic/cmpxchg.h, for those that do the
local cmpxchg_local() is the same as the asm-generic/cmpxchg.h one.
So no need to define the local one.

Signed-off-by: Greg Ungerer <>
 arch/m68k/include/asm/cmpxchg.h | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/arch/m68k/include/asm/cmpxchg.h b/arch/m68k/include/asm/cmpxchg.h
index 38e1d7acc44d..3a3bdcfcd375 100644
--- a/arch/m68k/include/asm/cmpxchg.h
+++ b/arch/m68k/include/asm/cmpxchg.h
@@ -129,14 +129,6 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
- * cmpxchg_local and cmpxchg64_local are atomic wrt current CPU. Always make
- * them available.
- */
-#define cmpxchg_local(ptr, o, n)				  	       \
-	((__typeof__(*(ptr)))__cmpxchg_local_generic((ptr), (unsigned long)(o),\
-			(unsigned long)(n), sizeof(*(ptr))))
 #include <asm-generic/cmpxchg.h>

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

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15  6:42 [PATCH 4/5] m68k: use asm-generic cmpxchg_local() Greg Ungerer

Linux-m68k Archive on

Archives are clonable:
	git clone --mirror linux-m68k/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-m68k linux-m68k/ \
	public-inbox-index linux-m68k

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone