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.

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>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
3788d69d d4b7080b

+1 -1
+1 -1
usr/include/Makefile
··· 80 80 # Include the header twice to detect missing include guard. 81 81 quiet_cmd_hdrtest = HDRTEST $< 82 82 cmd_hdrtest = \ 83 - $(CC) $(c_flags) -fsyntax-only -x c /dev/null \ 83 + $(CC) $(c_flags) -fsyntax-only -Werror -x c /dev/null \ 84 84 $(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \ 85 85 $(PERL) $(src)/headers_check.pl $(obj) $<; \ 86 86 touch $@