projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44fe489
)
x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
author
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 17 May 2021 07:38:12 +0000
(16:38 +0900)
committer
Thomas Gleixner
<tglx@linutronix.de>
Thu, 20 May 2021 13:03:59 +0000
(15:03 +0200)
X32_NR_syscalls is needed only when building a 64bit kernel.
Move it to proper #ifdef guard.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/r/20210517073815.97426-5-masahiroy@kernel.org
arch/x86/include/asm/unistd.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/unistd.h
b/arch/x86/include/asm/unistd.h
index c1c3d31b15c0650f5c6feef4eef01cc7d81f1f2e..1bc6020bc58db5e82b3e07b76e14bb24e0acfeb4 100644
(file)
--- a/
arch/x86/include/asm/unistd.h
+++ b/
arch/x86/include/asm/unistd.h
@@
-26,11
+26,11
@@
# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
# define __ARCH_WANT_COMPAT_SYS_PREADV64V2
# define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
+# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
# endif
# define NR_syscalls (__NR_syscall_max + 1)
-# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
# define IA32_NR_syscalls (__NR_ia32_syscall_max + 1)
# define __ARCH_WANT_NEW_STAT