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: respect CONFIG_WERROR for linker and assembler

The linker and assembler do not share the compiler flags.

Make sure they also fail on warnings with CONFIG_WERROR and W=e.

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-4-c01e596309d2@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
ec4a3992 592b571f

+2
+2
scripts/Makefile.extrawarn
··· 217 217 ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) 218 218 219 219 KBUILD_CPPFLAGS += -Werror 220 + KBUILD_AFLAGS += -Wa,--fatal-warnings 221 + KBUILD_LDFLAGS += --fatal-warnings 220 222 KBUILD_RUSTFLAGS += -Dwarnings 221 223 222 224 endif