linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] kbuild: fix 'No such file or directory' warning when cleaning
@ 2019-12-04  2:51 Masahiro Yamada
  2019-12-05 17:17 ` Masahiro Yamada
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2019-12-04  2:51 UTC (permalink / raw)
  To: linux-kbuild; +Cc: Masahiro Yamada, linux-kernel

Since commit fcbb8461fd23 ("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: fcbb8461fd23 ("kbuild: remove header compile test")
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

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

diff --git a/usr/include/Makefile b/usr/include/Makefile
index 24543a30b9f0..e5895a79c45f 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
 header-test- += asm-generic/%
 
-extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h'))
+extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
 
 quiet_cmd_hdrtest = HDRTEST $<
       cmd_hdrtest = \
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] kbuild: fix 'No such file or directory' warning when cleaning
  2019-12-04  2:51 [PATCH] kbuild: fix 'No such file or directory' warning when cleaning Masahiro Yamada
@ 2019-12-05 17:17 ` Masahiro Yamada
  0 siblings, 0 replies; 2+ messages in thread
From: Masahiro Yamada @ 2019-12-05 17:17 UTC (permalink / raw)
  To: Linux Kbuild mailing list; +Cc: Linux Kernel Mailing List

On Wed, Dec 4, 2019 at 11:52 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> Since commit fcbb8461fd23 ("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: fcbb8461fd23 ("kbuild: remove header compile test")
> Reported-by: kbuild test robot <lkp@intel.com>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---

Applied to linux-kbuild.


>  usr/include/Makefile | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/usr/include/Makefile b/usr/include/Makefile
> index 24543a30b9f0..e5895a79c45f 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
>  header-test- += asm-generic/%
>
> -extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h'))
> +extra-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
>
>  quiet_cmd_hdrtest = HDRTEST $<
>        cmd_hdrtest = \
> --
> 2.17.1
>


-- 
Best Regards
Masahiro Yamada

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-12-05 17:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-04  2:51 [PATCH] kbuild: fix 'No such file or directory' warning when cleaning Masahiro Yamada
2019-12-05 17:17 ` Masahiro Yamada

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).