diff options
author | Miguel Ojeda <ojeda@kernel.org> | 2025-08-14 12:14:43 +0200 |
---|---|---|
committer | Nathan Chancellor <nathan@kernel.org> | 2025-08-14 11:21:12 -0700 |
commit | 592b571f20c5b905c47a1370210456f9f90ce04f (patch) | |
tree | eaf1d7abe235324771f0f35e7247fea4e06eea61 /scripts | |
parent | e7a10929c574cf30981a8e19ef39bc35e63e8b46 (diff) |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/Makefile.extrawarn | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn index 1ffc7beca43b..b04b3062e0e4 100644 --- a/scripts/Makefile.extrawarn +++ b/scripts/Makefile.extrawarn @@ -217,5 +217,6 @@ endif ifneq ($(findstring e, $(KBUILD_EXTRA_WARN))$(CONFIG_WERROR),) KBUILD_CPPFLAGS += -Werror +KBUILD_RUSTFLAGS += -Dwarnings endif |