mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
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:
parent
5471878477
commit
9fba6131ae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user