summaryrefslogtreecommitdiff
path: root/arch/sparc/include
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2017-09-28 08:38:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-11-21 11:49:24 +0300
commit05e15a59eef1f87d0f50b592546b2c1fa64abbd4 (patch)
tree25fb0d575cb6762b22b092d31b9d4786413557b3 /arch/sparc/include
parent9aacd82304adb74fa9320cb1c5d4bc71b1b91f06 (diff)
downloadlinux-05e15a59eef1f87d0f50b592546b2c1fa64abbd4.tar.xz
sparc32: Add cmpxchg64().
commit 23198ddffb6cddb5d5824230af4dd4b46e4046a4 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/sparc/include')
-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 3e3823db303e..c73b5a3ab7b9 100644
--- a/arch/sparc/include/asm/cmpxchg_32.h
+++ b/arch/sparc/include/asm/cmpxchg_32.h
@@ -63,6 +63,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>
/*