Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

checksyscalls: move instance functionality into generic code

On MIPS the checksyscalls.sh script may be executed multiple times.
Currently these multiple executions are executed on each build as kbuild
see that the commands have changed each time.

Use a dedicated stamp file for each different invocation to avoid the
spurious executions.

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-3-6641be1de2db@weissschuh.net
Signed-off-by: Nicolas Schier <nsc@kernel.org>

authored by

Thomas Weißschuh and committed by
Nicolas Schier
c7c55f0e b34db3fa

+4 -6
+2 -2
Kbuild
··· 47 47 48 48 # Check for missing system calls 49 49 50 - missing-syscalls-file := .tmp_missing-syscalls 50 + missing-syscalls-file := .tmp_missing-syscalls$(missing_syscalls_instance) 51 51 52 52 targets += $(missing-syscalls-file) 53 53 54 - quiet_cmd_syscalls = CALL $< 54 + quiet_cmd_syscalls = CALL $< $(addprefix for ,$(missing_syscalls_instance)) 55 55 cmd_syscalls = DEPFILE=$(depfile) $(CONFIG_SHELL) $< $(CC) $(c_flags) $(missing_syscalls_flags); touch $@ 56 56 57 57 $(missing-syscalls-file): scripts/checksyscalls.sh $(rq-offsets-file) FORCE
+2 -4
arch/mips/Makefile
··· 421 421 422 422 archprepare: 423 423 ifdef CONFIG_MIPS32_N32 424 - @$(kecho) ' Checking missing-syscalls for N32' 425 - $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=n32" 424 + $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_instance="N32" missing_syscalls_flags="-mabi=n32" 426 425 endif 427 426 ifdef CONFIG_MIPS32_O32 428 - @$(kecho) ' Checking missing-syscalls for O32' 429 - $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_flags="-mabi=32" 427 + $(Q)$(MAKE) $(build)=. missing-syscalls missing_syscalls_instance="O32" missing_syscalls_flags="-mabi=32" 430 428 endif 431 429 432 430 install: