Skip to content

Commit f63815e

Browse files
masahir0yKAGA-KOKO
authored andcommitted
x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
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
1 parent 44fe489 commit f63815e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/include/asm/unistd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
2727
# define __ARCH_WANT_COMPAT_SYS_PREADV64V2
2828
# define __ARCH_WANT_COMPAT_SYS_PWRITEV64V2
29+
# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
2930

3031
# endif
3132

3233
# define NR_syscalls (__NR_syscall_max + 1)
33-
# define X32_NR_syscalls (__NR_x32_syscall_max + 1)
3434
# define IA32_NR_syscalls (__NR_ia32_syscall_max + 1)
3535

3636
# define __ARCH_WANT_NEW_STAT

0 commit comments

Comments
 (0)