summaryrefslogtreecommitdiffstats
path: root/arch/sparc/include/asm/cmpxchg_32.h
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-09-28 07:38:19 +0200
committerDavid S. Miller <davem@davemloft.net>2017-09-28 07:38:19 +0200
commit23198ddffb6cddb5d5824230af4dd4b46e4046a4 (patch)
tree652e124f2107f25a2d2507057905695375414b72 /arch/sparc/include/asm/cmpxchg_32.h
parentsbus: char: Move D7S_MINOR to include/linux/miscdevice.h (diff)
downloadlinux-23198ddffb6cddb5d5824230af4dd4b46e4046a4.tar.xz
linux-23198ddffb6cddb5d5824230af4dd4b46e4046a4.zip
sparc32: Add cmpxchg64().
This fixes the build with i40e driver enabled. Reported-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc/include/asm/cmpxchg_32.h')
-rw-r--r--arch/sparc/include/asm/cmpxchg_32.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/sparc/include/asm/cmpxchg_32.h b/arch/sparc/include/asm/cmpxchg_32.h
index 83ffb83c5397..a0101a58fd3f 100644
--- a/arch/sparc/include/asm/cmpxchg_32.h
+++ b/arch/sparc/include/asm/cmpxchg_32.h
@@ -62,6 +62,9 @@ __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new_, int size)
(unsigned long)_n_, sizeof(*(ptr))); \
})
+u64 __cmpxchg_u64(u64 *ptr, u64 old, u64 new);
+#define cmpxchg64(ptr, old, new) __cmpxchg_u64(ptr, old, new)
+
#include <asm-generic/cmpxchg-local.h>
/*