Skip to content

Commit 3788d69

Browse files
t-8chnathanchance
authored andcommitted
kbuild: uapi: fail header test on compiler warnings
Compiler warnings also indicate issues with the headers. Make sure they don't go unnoticed. 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-2-8a7921ca3a03@linutronix.de Signed-off-by: Nathan Chancellor <nathan@kernel.org>
1 parent d4b7080 commit 3788d69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

usr/include/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/
8080
# Include the header twice to detect missing include guard.
8181
quiet_cmd_hdrtest = HDRTEST $<
8282
cmd_hdrtest = \
83-
$(CC) $(c_flags) -fsyntax-only -x c /dev/null \
83+
$(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \
8484
$(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
8585
$(PERL) $(src)/headers_check.pl $(obj) $<; \
8686
touch $@

0 commit comments

Comments
 (0)