diff mbox series

usr/include: replace extra-y with all-y

Message ID 20220227090335.207130-1-masahiroy@kernel.org (mailing list archive)
State New, archived
Headers show
Series usr/include: replace extra-y with all-y | expand

Commit Message

Masahiro Yamada Feb. 27, 2022, 9:03 a.m. UTC
extra-y is not run for 'make modules'. The header compile test should
be run irrespective of the build target. all-y is a better fit.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 usr/include/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/usr/include/Makefile b/usr/include/Makefile
index 5bc0d566cfe0..758df4058814 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -95,7 +95,7 @@  endif
 # asm-generic/*.h is used by asm/*.h, and should not be included directly
 no-header-test += asm-generic/%
 
-extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
+all-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
 
 # Include the header twice to detect missing include guard.
 quiet_cmd_hdrtest = HDRTEST $<