]> git.baikalelectronics.ru Git - kernel.git/commit
scripts: add generic syscallnr.sh
authorMasahiro Yamada <masahiroy@kernel.org>
Tue, 6 Jul 2021 06:15:29 +0000 (15:15 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 8 Jul 2021 19:01:14 +0000 (04:01 +0900)
commit27932b6a2088eac7a5afa5471963b926cfbb4de7
treec0ac1332cb380432931e3e88140ddb7aa90f5d02
parentc6a3a81d19b834e3aed819027f022c5938fca2ec
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: Masahiro Yamada <masahiroy@kernel.org>
scripts/syscallnr.sh [new file with mode: 0644]