Skip to content

Commit

Permalink
x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Masahiro Yamada authored and Thomas Gleixner committed May 20, 2021
1 parent 44fe489 commit f63815e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/unistd.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f63815e

Please sign in to comment.