]> www.infradead.org Git - users/hch/misc.git/commitdiff
kbuild: align W=e with CONFIG_WERROR
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Thu, 14 Aug 2025 10:14:41 +0000 (12:14 +0200)
committerNathan Chancellor <nathan@kernel.org>
Thu, 14 Aug 2025 18:20:58 +0000 (11:20 -0700)
CONFIG_WERROR sets KBUILD_CPPFLAGS while W=e would only set KBUILD_CFLAGS.

As a preparation to unify the two mechanism, align their effects.

While at it, add some alignment whitespace to prepare for later additions
to the list of changed variables.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250814-kbuild-werror-v2-1-c01e596309d2@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/Makefile.extrawarn

index dca175fffcabeb2d942814f0a096a7efbf8bc819..4b4e8e136ce6b45f43dc7658eda78ae2b37bd792 100644 (file)
@@ -218,6 +218,6 @@ endif
 #
 ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),)
 
-KBUILD_CFLAGS += -Werror
+KBUILD_CPPFLAGS                += -Werror
 
 endif