checksyscalls: move path to reference table to a variable

An upcoming patch will need to reuse this path.

Move it into a reusable variable.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://patch.msgid.link/20260402-kbuild-missing-syscalls-v3-1-6641be1de2db@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>
This commit is contained in:
Thomas Weißschuh 2026-04-02 16:36:18 +02:00 committed by Nicolas Schier
parent 5471878477
commit 9fba6131ae
No known key found for this signature in database
GPG Key ID: 07520A7016261269

View File

@ -10,6 +10,8 @@
# checksyscalls.sh gcc gcc-options
#
reference_table="$(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl"
ignore_list() {
cat << EOF
#include <asm/types.h>
@ -269,5 +271,5 @@ syscall_list() {
done
}
(ignore_list && syscall_list $(dirname $0)/../arch/x86/entry/syscalls/syscall_32.tbl) | \
(ignore_list && syscall_list ${reference_table}) | \
$* -Wno-error -Wno-unused-macros -E -x c - > /dev/null