aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2025-06-01 22:31:27 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2025-06-06 05:40:25 +0900
commit89e7fecf5ce2e85a323e58f09aa808218a37079a (patch)
treece02f8da36f89cd0076cc4947d89f2fccb13ed65 /Makefile
parentscripts/tags.sh: allow to use alternative ctags implementation (diff)
downloadlinux-89e7fecf5ce2e85a323e58f09aa808218a37079a.tar.gz
linux-89e7fecf5ce2e85a323e58f09aa808218a37079a.zip
kbuild: move W=1 check for scripts/misc-check to top-level Makefile
This script is executed only when ${KBUILD_EXTRA_WARN} contains 1. Move this check to the top-level Makefile to allow more checks to be easily added to this script. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 9a104f02ce25..fe2f1cb4d9b7 100644
--- a/Makefile
+++ b/Makefile
@@ -1827,9 +1827,12 @@ rustfmtcheck: rustfmt
# Misc
# ---------------------------------------------------------------------------
+# Run misc checks when ${KBUILD_EXTRA_WARN} contains 1
PHONY += misc-check
+ifneq ($(findstring 1,$(KBUILD_EXTRA_WARN)),)
misc-check:
$(Q)$(srctree)/scripts/misc-check
+endif
all: misc-check