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: Rename Makefile.extrawarn to Makefile.warn

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>

authored by

Nathan Chancellor and committed by
Nicolas Schier
7319256d d5690673

+2 -2
+1 -1
Makefile
··· 1084 1084 endif 1085 1085 1086 1086 # include additional Makefiles when needed 1087 - include-y := scripts/Makefile.extrawarn 1087 + include-y := scripts/Makefile.warn 1088 1088 include-$(CONFIG_DEBUG_INFO) += scripts/Makefile.debug 1089 1089 include-$(CONFIG_DEBUG_INFO_BTF)+= scripts/Makefile.btf 1090 1090 include-$(CONFIG_KASAN) += scripts/Makefile.kasan
+1 -1
drivers/gpu/drm/Makefile
··· 6 6 CFLAGS-$(CONFIG_DRM_USE_DYNAMIC_DEBUG) += -DDYNAMIC_DEBUG_MODULE 7 7 8 8 # Unconditionally enable W=1 warnings locally 9 - # --- begin copy-paste W=1 warnings from scripts/Makefile.extrawarn 9 + # --- begin copy-paste W=1 warnings from scripts/Makefile.warn 10 10 subdir-ccflags-y += -Wextra -Wunused -Wno-unused-parameter 11 11 subdir-ccflags-y += $(call cc-option, -Wrestrict) 12 12 subdir-ccflags-y += -Wmissing-format-attribute
scripts/Makefile.extrawarn scripts/Makefile.warn