From patchwork Wed Dec 4 02:51:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 11272093 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A6619109A for ; Wed, 4 Dec 2019 02:52:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77860207DD for ; Wed, 4 Dec 2019 02:52:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575427939; bh=syaEFwI9mJEOPVGNWfHHh+QValAAa0FXIZ2cJ+YnhGg=; h=From:To:Cc:Subject:Date:List-ID:From; b=M/s2fk3p2c8y/vLhAvOJCmdeC4DZPV3Kxrbhv+f0eg0hJJZmQNTrzCTUSe5E417pd GHD9id3SJgwE8cw01lCmYB0XH1+R8dZ66LPVtBmi/pZnt6GN1IeU3RVoMoNgMFp6ty WxE4sAu2EdBBGiFcQ/KtmtmsJY9c7YRKRONay/3E= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726968AbfLDCwS (ORCPT ); Tue, 3 Dec 2019 21:52:18 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:52231 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726521AbfLDCwR (ORCPT ); Tue, 3 Dec 2019 21:52:17 -0500 X-Greylist: delayed 124053 seconds by postgrey-1.27 at vger.kernel.org; Tue, 03 Dec 2019 21:52:16 EST Received: from localhost.localdomain (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id xB42pqN2021272; Wed, 4 Dec 2019 11:51:52 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com xB42pqN2021272 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1575427913; bh=h1Zzop3sqPtOLhqGWdfgR6EWkFWSOPCC1FE6B+QXfJs=; h=From:To:Cc:Subject:Date:From; b=DAY8ZOIUsVXdtaFP9Kgqfik+1jq26HX2kyZsm3hHV7nUPETSmr/bCJ9tIFXtv8+Cy YUZbGu22saWM3h4NInFBKycZ7+fXMml8+EGruC4mXjrhl7koDBAxIX7aqzaCGDxzw6 DdWroYmh4wXNJ/NYCS3EVlZK4rHCGJI8FurIZ0l20K8TSMCyNmNEnKI32+f83fRehd /WO9yMuGnmai3BUoW9yMDxaTJs7xAMkeDWME2ldLilumPo90mUME/CpWfeP8zrWeDM UrV8DX1DkHGe/AUK5vMFsbja/DQKcFuTCow8YpvcMQawN1Qo2f6Qf90rEj3G5sErCZ A8TnCIHd3mt1g== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] kbuild: fix 'No such file or directory' warning when cleaning Date: Wed, 4 Dec 2019 11:51:48 +0900 Message-Id: <20191204025148.32101-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-kbuild-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org 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 Signed-off-by: Masahiro Yamada --- 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 = \