summary refs log tree commit diff
path: root/include/asm-generic
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2022-10-31 14:23:13 +0100
committerMichael Ellerman <mpe@ellerman.id.au>2022-11-01 10:20:11 +1100
commit40ff21432883216aa440b6619d559ad8f7d7a7d9 (patch)
tree7cd9bac5376e80a2f88623a0003b0dcc5881500a /include/asm-generic
parent2153fc9623e5465f503d793d4c94ad65e9ec9b5f (diff)
downloadlinux-40ff21432883216aa440b6619d559ad8f7d7a7d9.tar.gz
asm-generic: compat: fix compat_arg_u64() and compat_arg_u64_dual()
The macros are defined backwards.

This affects the following compat syscalls:
 - compat_sys_truncate64()
 - compat_sys_ftruncate64()
 - compat_sys_fallocate()
 - compat_sys_sync_file_range()
 - compat_sys_fadvise64_64()
 - compat_sys_readahead()
 - compat_sys_pread64()
 - compat_sys_pwrite64()

Fixes: 43d5de2b67d7 ("asm-generic: compat: Support BE for long long args in 32-bit ABIs")
Signed-off-by: Andreas Schwab <schwab@linux-m68k.org>
[mpe: Add list of affected syscalls]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/871qqoyvni.fsf_-_@igel.home
Diffstat (limited to 'include/asm-generic')
-rw-r--r--include/asm-generic/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-generic/compat.h b/include/asm-generic/compat.h
index aeb257ad3d1a..8392caea398f 100644
--- a/include/asm-generic/compat.h
+++ b/include/asm-generic/compat.h
@@ -15,7 +15,7 @@
 #endif
 
 #ifndef compat_arg_u64
-#ifdef CONFIG_CPU_BIG_ENDIAN
+#ifndef CONFIG_CPU_BIG_ENDIAN
 #define compat_arg_u64(name)		u32  name##_lo, u32  name##_hi
 #define compat_arg_u64_dual(name)	u32, name##_lo, u32, name##_hi
 #else