diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-03-20 04:35:04 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-20 11:06:55 -0700 |
commit | b0a217f8585d50b7d3352f545b0241a8da70f77a (patch) | |
tree | e2f4dedb6c34828dee7df9775b8994a6fd395979 /arch/sparc/include | |
parent | ce835e513a93a4dc0d7bf72fc205a0b815f305e3 (diff) | |
download | op-kernel-dev-b0a217f8585d50b7d3352f545b0241a8da70f77a.zip op-kernel-dev-b0a217f8585d50b7d3352f545b0241a8da70f77a.tar.gz |
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.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include')
-rw-r--r-- | 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__ */ |