]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
checksyscalls: move path to reference table to a variable
authorThomas Weißschuh <linux@weissschuh.net>
Thu, 2 Apr 2026 14:36:18 +0000 (16:36 +0200)
committerNicolas Schier <nsc@kernel.org>
Sun, 5 Apr 2026 07:21:23 +0000 (09:21 +0200)
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>
scripts/checksyscalls.sh

index 1e5d2eeb726df00e5be8b7aef040b97b011546c8..9becaf8d7b78541779f9ea6c053fd433d1c225c1 100755 (executable)
@@ -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