kbuild: show warning for 'make headers_check'
PATCH 1/1 kbuild: show warning for 'make headers_check'
Since commit 7ecaf069da52 ("kbuild: move headers_check rule to usr/include/Makefile"), the headers_check target is no-op.
This stub target is remaining here in case some scripts still invoke 'make headers_check'. 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.
---
Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Makefile +5 -1
@@ -1339,7 +1339,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
Signature · 1 line
2.27.0
Quoted 11 lines · Masahiro Yamada
Since commit
7ecaf069da52("kbuild: moveheaders_checkrule tousr/include/Makefile"), theheaders_checktarget is no-op.This stub target is remaining here in case some scripts still invoke 'make
headers_check'. 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 <[email protected]>---
Applied to linux-kbuild.
Quoted 24 lines
Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)Makefile +5
-2@@ -1339,7 +1339,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 --2.27.0
Signature · 2 lines
Best Regards Masahiro Yamada