diff options
author | David S. Miller <davem@davemloft.net> | 2017-09-28 08:38:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-28 08:38:19 +0300 |
commit | 23198ddffb6cddb5d5824230af4dd4b46e4046a4 (patch) | |
tree | 652e124f2107f25a2d2507057905695375414b72 /arch/sparc/include | |
parent | da61e7308df868c20a41861c0a11f6eefd822993 (diff) | |
download | linux-23198ddffb6cddb5d5824230af4dd4b46e4046a4.tar.xz |
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')
-rw-r--r-- | arch/sparc/include/asm/cmpxchg_32.h | 3 |
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> /* |