Skip to content
Snippets Groups Projects
Commit 27932b6a authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

scripts: add generic syscallnr.sh


Like syscallhdr.sh and syscalltbl.sh, add a simple script to generate
the __NR_syscalls, which should not be exported to userspace.

This script is useful to replace arch/mips/kernel/syscalls/syscallnr.sh,
refactor arch/s390/kernel/syscalls/syscalltbl, and eliminate the code
surrounded by #ifdef __KERNEL__ / #endif from exported uapi/asm/unistd_*.h
files.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent c6a3a81d
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment