summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2021-03-02 23:26:14 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2021-04-25 05:11:54 +0900
commit609bbb4de4f85b7ef45d81a88e6b7dfe3bf5ccea (patch)
treee58a4beedbfeed15216712cfb7d9c761453aebc1 /Makefile
parent805b2e1d427aab4bb27fa7c51ebb9db7547551b1 (diff)
downloadlinux-609bbb4de4f85b7ef45d81a88e6b7dfe3bf5ccea.tar.gz
linux-609bbb4de4f85b7ef45d81a88e6b7dfe3bf5ccea.tar.bz2
linux-609bbb4de4f85b7ef45d81a88e6b7dfe3bf5ccea.zip
kbuild: show warning if 'make headers_check' is used
Since commit 7ecaf069da52 ("kbuild: move headers_check rule to usr/include/Makefile"), 'make headers_check' is no-op. This stub target is remaining here in case some scripts still invoke it. In order to prompt people to remove stale code, show a noisy warning message if used. The stub will be really removed after the Linux 5.15 release. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d79823428cd7..80c82155ebb6 100644
--- a/Makefile
+++ b/Makefile
@@ -1358,7 +1358,11 @@ headers: $(version_h) scripts_unifdef uapi-asm-generic archheaders archscripts
# Deprecated. It is no-op now.
PHONY += headers_check
headers_check:
- @:
+ @echo >&2 "=================== WARNING ==================="
+ @echo >&2 "Since Linux 5.5, 'make headers_check' is no-op,"
+ @echo >&2 "and will be removed after Linux 5.15 release."
+ @echo >&2 "Please remove headers_check from your scripts."
+ @echo >&2 "==============================================="
ifdef CONFIG_HEADERS_INSTALL
prepare: headers