]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
x86/syscalls: Use __NR_syscalls instead of __NR_syscall_max
authorMasahiro Yamada <masahiroy@kernel.org>
Mon, 17 May 2021 07:38:13 +0000 (16:38 +0900)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 20 May 2021 13:03:59 +0000 (15:03 +0200)
commit49f731f1972e6e44d8a5c3982a72902b3944bc34
tree4e484aebd2b85a4f2d03bd82518f52beec0c5258
parentf63815eb1d909a4121806e60928108ff040bf291
x86/syscalls: Use __NR_syscalls instead of __NR_syscall_max

__NR_syscall_max is only used by x86 and UML. In contrast, __NR_syscalls is
widely used by all the architectures.

Convert __NR_syscall_max to __NR_syscalls and adjust the usage sites.

This prepares x86 to switch to the generic syscallhdr.sh script.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210517073815.97426-6-masahiroy@kernel.org
arch/um/kernel/skas/syscall.c
arch/x86/entry/syscalls/syscallhdr.sh
arch/x86/include/asm/unistd.h