[PATCH 0/7] x86: fix warnings and refactor syscall code
From: Masahiro Yamada
Date: Mon Mar 01 2021 - 08:20:55 EST
This patch series makes a lot of cleanups.
We can remove a lot of lines.
The code diff is attractive.
Masahiro Yamada (7):
x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL()
x86/entry/x32: rename __x32_compat_sys_* to __x64_compat_sys_*
x86/syscalls: switch to generic syscalltbl.sh
x86/syscalls: stop filling syscall arrays with *_sys_ni_syscall
x86/unistd: define X32_NR_syscalls only for 64-bit kernel
x86/syscalls: use __NR_syscalls instead of __NR_syscall_max
x86/syscalls: switch to generic syscallhdr.sh
arch/um/kernel/skas/syscall.c | 2 +-
arch/x86/entry/syscall_32.c | 20 +++++------
arch/x86/entry/syscall_64.c | 17 +++-------
arch/x86/entry/syscall_x32.c | 35 ++++----------------
arch/x86/entry/syscalls/Makefile | 36 +++++++++++---------
arch/x86/entry/syscalls/syscallhdr.sh | 35 --------------------
arch/x86/entry/syscalls/syscalltbl.sh | 46 --------------------------
arch/x86/include/asm/Kbuild | 1 +
arch/x86/include/asm/syscall_wrapper.h | 11 +++---
arch/x86/include/asm/unistd.h | 8 ++---
arch/x86/um/sys_call_table_32.c | 14 +++-----
arch/x86/um/sys_call_table_64.c | 15 ++-------
12 files changed, 61 insertions(+), 179 deletions(-)
delete mode 100644 arch/x86/entry/syscalls/syscallhdr.sh
delete mode 100644 arch/x86/entry/syscalls/syscalltbl.sh
--
2.27.0