]> Gentwo Git Trees - linux/.git/commitdiff
kbuild: Rename Makefile.extrawarn to Makefile.warn
authorNathan Chancellor <nathan@kernel.org>
Thu, 23 Oct 2025 20:01:36 +0000 (22:01 +0200)
committerNicolas Schier <nsc@kernel.org>
Sat, 8 Nov 2025 11:17:59 +0000 (12:17 +0100)
Since commit e88ca24319e4 ("kbuild: consolidate warning flags in
scripts/Makefile.extrawarn"), scripts/Makefile.extrawarn contains all
warnings for the main kernel build, not just warnings enabled by the
values for W=. Rename it to scripts/Makefile.warn to make it clearer
that this Makefile is where all Kbuild warning handling should exist.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20251023-rename-scripts-makefile-extrawarn-v1-1-8f7531542169@kernel.org
Signed-off-by: Nicolas Schier <nsc@kernel.org>
Makefile
drivers/gpu/drm/Makefile
scripts/Makefile.warn [moved from scripts/Makefile.extrawarn with 100% similarity]

index 79b631075d33b9d3f1e5079877834bf7e1cf81f5..96ca0f17d158a0a2e0c800f7f988eac8a0cfa796 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1084,7 +1084,7 @@ KBUILD_CPPFLAGS += $(call cc-option,-fmacro-prefix-map=$(srcroot)/=)
 endif
 
 # include additional Makefiles when needed
-include-y                      := scripts/Makefile.extrawarn
+include-y                      := scripts/Makefile.warn
 include-$(CONFIG_DEBUG_INFO)   += scripts/Makefile.debug
 include-$(CONFIG_DEBUG_INFO_BTF)+= scripts/Makefile.btf
 include-$(CONFIG_KASAN)                += scripts/Makefile.kasan
index 4b2f7d794275271e7f400dd9300402d9394f20ae..d1a102c4b80a42c3d10dfa439f179492a1acdd90 100644 (file)
@@ -6,7 +6,7 @@
 CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE
 
 # Unconditionally enable W=1 warnings locally
-# --- begin copy-paste W=1 warnings from scripts/Makefile.extrawarn
+# --- begin copy-paste W=1 warnings from scripts/Makefile.warn
 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter
 subdir-ccflags-y += $(call cc-option, -Wrestrict)
 subdir-ccflags-y += -Wmissing-format-attribute