x86/entry: Move max syscall number calculation to syscallhdr.sh
authorBrian Gerst <brgerst@gmail.com>
Fri, 13 Mar 2020 19:51:34 +0000 (15:51 -0400)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 21 Mar 2020 15:03:21 +0000 (16:03 +0100)
commit0872098804b5f44bab91f80b6df55df32894fee3
tree1cfe6e6c1d6a4d5c9c083b288780af56364ca0bb
parent2e487c357917b98adc6a6dafa612c435cad1af41
x86/entry: Move max syscall number calculation to syscallhdr.sh

Instead of using an array in asm-offsets to calculate the max syscall
number, calculate it when writing out the syscall headers.

Signed-off-by: Brian Gerst <brgerst@gmail.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20200313195144.164260-9-brgerst@gmail.com
12 files changed:
arch/x86/entry/syscall_32.c
arch/x86/entry/syscall_64.c
arch/x86/entry/syscall_x32.c
arch/x86/entry/syscalls/syscallhdr.sh
arch/x86/entry/vdso/vdso32/vclock_gettime.c
arch/x86/include/asm/syscall.h
arch/x86/include/asm/unistd.h
arch/x86/kernel/asm-offsets_32.c
arch/x86/kernel/asm-offsets_64.c
arch/x86/um/sys_call_table_32.c
arch/x86/um/sys_call_table_64.c
arch/x86/um/user-offsets.c