x86/unistd: Define X32_NR_syscalls only for 64-bit kernel
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 May 2021 07:38:12 +0000 (16:38 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 May 2021 13:03:59 +0000 (15:03 +0200)
commitf63815eb1d909a4121806e60928108ff040bf291
tree45278112aa1b4f4f030bc7b8208ca3775f1a6f59
parent44fe4895f47cbe9f4692e1d3cdc2ef8352f4d88e
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
arch/x86/include/asm/unistd.h