[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAK7LNAS3wSV6a48zMg=o2RXBz8qaijo6SqBcSyzwf0sW=dF71A@mail.gmail.com>
Date: Fri, 6 Dec 2019 02:17:49 +0900
From: Masahiro Yamada <masahiroy@...nel.org>
To: Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] kbuild: fix 'No such file or directory' warning when cleaning
On Wed, Dec 4, 2019 at 11:52 AM Masahiro Yamada <masahiroy@...nel.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@...el.com>
> Signed-off-by: Masahiro Yamada <masahiroy@...nel.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
Powered by blists - more mailing lists