Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit feb20ec2 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven
Browse files

m68k: Add missing cmpxchg64() if CONFIG_RMW_INSNS=y



If CONFIG_RMW_INSNS=y:

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 is already mapped to
__cmpxchg64_local_generic, just like for the CONFIG_RMW_INSNS=n case.

Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
parent 41ef2d56
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -124,6 +124,9 @@ static inline unsigned long __cmpxchg(volatile void *p, unsigned long old,
#define cmpxchg_local(ptr, o, n)					    \
#define cmpxchg_local(ptr, o, n)					    \
	((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o),	    \
	((__typeof__(*(ptr)))__cmpxchg((ptr), (unsigned long)(o),	    \
			(unsigned long)(n), sizeof(*(ptr))))
			(unsigned long)(n), sizeof(*(ptr))))

#define cmpxchg64(ptr, o, n)	cmpxchg64_local((ptr), (o), (n))

#else
#else


/*
/*