diff options
| author | Thomas Weißschuh <thomas.weissschuh@linutronix.de> | 2025-08-14 12:14:44 +0200 |
|---|---|---|
| committer | Nathan Chancellor <nathan@kernel.org> | 2025-08-14 11:21:17 -0700 |
| commit | ec4a3992bc0b5b659eceb44a9f8582b26f2c8489 (patch) | |
| tree | 2053eb4a28615afd38306ec576b32ac8180e95af /scripts | |
| parent | 592b571f20c5b905c47a1370210456f9f90ce04f (diff) | |
| download | random-ec4a3992bc0b5b659eceb44a9f8582b26f2c8489.tar.gz | |
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>
Diffstat (limited to 'scripts')
| -rw-r--r-- | scripts/Makefile.extrawarn | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index b04b3062e0e49c..6efb9e5eeeed06 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -217,6 +217,8 @@ endif ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) KBUILD_CPPFLAGS += -Werror +KBUILD_AFLAGS += -Wa,--fatal-warnings +KBUILD_LDFLAGS += --fatal-warnings KBUILD_RUSTFLAGS += -Dwarnings endif |
