Skip to content

x86: fix warnings and refactor syscall code

Masahiro Yamada linux-um lkml 1 version Applied

Status from this message: The following commit has been merged into the x86/cleanups branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 3 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7x86/syscalls: fix -Wmissing-prototypes warnings from COND_SYSCALL()arch/x86/include/asm/syscall_wrapper.h+1 -03 replies
2/7x86/entry/x32: rename __x32_compat_sys_* to __x64_compat_sys_*arch/x86/entry/syscall_x32.c arch/x86/include/asm/syscall_wrapper.h+7 -190 replies
3/7x86/syscalls: switch to generic syscalltbl.sharch/x86/entry/syscall_32.c arch/x86/entry/syscall_64.c arch/x86/entry/syscall_x32.c +5 more+34 -760 replies
4/7x86/syscalls: stop filling syscall arrays with *_sys_ni_syscallarch/x86/entry/syscall_32.c arch/x86/entry/syscall_64.c arch/x86/entry/syscall_x32.c +2 more+6 -360 replies
5/7x86/unistd: define X32_NR_syscalls only for 64-bit kernelarch/x86/include/asm/unistd.h+1 -10 replies
6/7x86/syscalls: use __NR_syscalls instead of __NR_syscall_maxarch/um/kernel/skas/syscall.c arch/x86/entry/syscalls/syscallhdr.sh arch/x86/include/asm/unistd.h+6 -60 replies
7/7x86/syscalls: switch to generic syscallhdr.sharch/x86/entry/syscalls/Makefile arch/x86/entry/syscalls/syscallhdr.sh+13 -480 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by.

PatchMickaël Salaün
1/7T-b
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/7] x86: fix warnings and refactor syscall code

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
Signature · 1 line
2.27.0