projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b7080
)
kbuild: uapi: fail header test on compiler warnings
author
Thomas Weißschuh
<thomas.weissschuh@linutronix.de>
Wed, 13 Aug 2025 06:16:57 +0000
(08:16 +0200)
committer
Nathan Chancellor
<nathan@kernel.org>
Wed, 13 Aug 2025 21:00:34 +0000
(14:00 -0700)
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>
usr/include/Makefile
patch
|
blob
|
history
diff --git
a/usr/include/Makefile
b/usr/include/Makefile
index
c7f1649
..
61a7dd4
100644
(file)
--- a/
usr/include/Makefile
+++ b/
usr/include/Makefile
@@
-80,7
+80,7
@@
always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/
# Include the header twice to detect missing include guard.
quiet_cmd_hdrtest = HDRTEST $<
cmd_hdrtest = \
- $(CC) $(c_flags) -fsyntax-only -x c /dev/null \
+ $(CC) $(c_flags) -fsyntax-only -
Werror -
x c /dev/null \
$(if $(filter-out $(no-header-test), $*.h), -include $< -include $<); \
$(PERL) $(src)/headers_check.pl $(obj) $<; \
touch $@