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: align W=e with CONFIG_WERROR

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>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
f852ce05 b8d762c9

+1 -1
+1 -1
scripts/Makefile.extrawarn
··· 218 218 # 219 219 ifneq ($(findstring e, $(KBUILD_EXTRA_WARN)),) 220 220 221 - KBUILD_CFLAGS += -Werror 221 + KBUILD_CPPFLAGS += -Werror 222 222 223 223 endif