Skip to content

Commit cf6b58a

Browse files
committed
kbuild: fix 'No such file or directory' warning when cleaning
Since commit fcbb846 ("kbuild: remove header compile test"), 'make clean' with O= option in the pristine source tree emits 'No such file or directory' warning. $ git clean -d -f -x $ make O=foo clean make[1]: Entering directory '/home/masahiro/linux/foo' find: ‘usr/include’: No such file or directory make[1]: Leaving directory '/home/masahiro/linux/foo' Fixes: fcbb846 ("kbuild: remove header compile test") Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
1 parent e42617b commit cf6b58a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎usr/include/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ endif
9191
# asm-generic/*.h is used by asm/*.h, and should not be included directly
9292
header-test- += asm-generic/%
9393

94-
extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h'))
94+
extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
9595

9696
quiet_cmd_hdrtest = HDRTEST $<
9797
cmd_hdrtest = \

0 commit comments

Comments
 (0)