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: rust: move `-Dwarnings` handling to `Makefile.extrawarn`

Following commit e88ca24319e4 ("kbuild: consolidate warning flags
in scripts/Makefile.extrawarn"), move `-Dwarnings` handling into
`Makefile.extrawarn` like C's `-Werror`.

No functional change intended.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Nicolas Schier <nsc@kernel.org>
Link: https://lore.kernel.org/r/20250814-kbuild-werror-v2-3-c01e596309d2@linutronix.de
Signed-off-by: Nathan Chancellor <nathan@kernel.org>

authored by

Miguel Ojeda and committed by
Nathan Chancellor
592b571f e7a10929

+1 -3
-3
Makefile
··· 901 901 902 902 KBUILD_CFLAGS += $(stackp-flags-y) 903 903 904 - KBUILD_RUSTFLAGS-$(CONFIG_WERROR) += -Dwarnings 905 - KBUILD_RUSTFLAGS += $(KBUILD_RUSTFLAGS-y) 906 - 907 904 ifdef CONFIG_FRAME_POINTER 908 905 KBUILD_CFLAGS += -fno-omit-frame-pointer -fno-optimize-sibling-calls 909 906 KBUILD_RUSTFLAGS += -Cforce-frame-pointers=y
+1
scripts/Makefile.extrawarn
··· 217 217 ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) 218 218 219 219 KBUILD_CPPFLAGS += -Werror 220 + KBUILD_RUSTFLAGS += -Dwarnings 220 221 221 222 endif