]> www.infradead.org Git - users/hch/misc.git/commitdiff
kbuild: uapi: rerun header tests when headers_check.pl changes
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Wed, 13 Aug 2025 06:16:56 +0000 (08:16 +0200)
committerNathan Chancellor <nathan@kernel.org>
Wed, 13 Aug 2025 21:00:33 +0000 (14:00 -0700)
If the checks change they need to be rerun.

Add a Makefile dependency so this happens.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250813-kbuild-hdrtest-fixes-v2-1-8a7921ca3a03@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
usr/include/Makefile

index f02f41941b60c88d921da2b955076bbff7884c1c..c7f164952b33acf6c7b8eb7ce91cd192bfc39ad2 100644 (file)
@@ -85,7 +85,7 @@ quiet_cmd_hdrtest = HDRTEST $<
                $(PERL) $(src)/headers_check.pl $(obj) $<; \
                touch $@
 
-$(obj)/%.hdrtest: $(obj)/%.h FORCE
+$(obj)/%.hdrtest: $(obj)/%.h $(src)/headers_check.pl FORCE
        $(call if_changed_dep,hdrtest)
 
 # Since GNU Make 4.3, $(patsubst $(obj)/%/,%,$(wildcard $(obj)/*/)) works.