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 userprogs

The userprogs compiler and linker do not share the regular 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-5-c01e596309d2@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Thomas Weißschuh and committed by
Nathan Chancellor
3f0ff4cc ec4a3992

+2
+2
scripts/Makefile.extrawarn
··· 219 219 KBUILD_CPPFLAGS += -Werror 220 220 KBUILD_AFLAGS += -Wa,--fatal-warnings 221 221 KBUILD_LDFLAGS += --fatal-warnings 222 + KBUILD_USERCFLAGS += -Werror 223 + KBUILD_USERLDFLAGS += -Wl,--fatal-warnings 222 224 KBUILD_RUSTFLAGS += -Dwarnings 223 225 224 226 endif