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:
ec4a399
)
kbuild: respect CONFIG_WERROR for userprogs
author
Thomas Weißschuh
<thomas.weissschuh@linutronix.de>
Thu, 14 Aug 2025 10:14:45 +0000
(12:14 +0200)
committer
Nathan Chancellor
<nathan@kernel.org>
Thu, 14 Aug 2025 18:21:21 +0000
(11:21 -0700)
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>
scripts/Makefile.extrawarn
patch
|
blob
|
history
diff --git
a/scripts/Makefile.extrawarn
b/scripts/Makefile.extrawarn
index
6efb9e5
..
96ff3f5
100644
(file)
--- a/
scripts/Makefile.extrawarn
+++ b/
scripts/Makefile.extrawarn
@@
-219,6
+219,8
@@
ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),)
KBUILD_CPPFLAGS += -Werror
KBUILD_AFLAGS += -Wa,--fatal-warnings
KBUILD_LDFLAGS += --fatal-warnings
+KBUILD_USERCFLAGS += -Werror
+KBUILD_USERLDFLAGS += -Wl,--fatal-warnings
KBUILD_RUSTFLAGS += -Dwarnings
endif