Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp986186pxb; Tue, 19 Oct 2021 17:52:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz+U4HmGv6nM5H8YiP9nLIhk4P1XC1tl2YNAz25ilBH7A5PWUhIq9nc7D3uqlj9hQK2qG0P X-Received: by 2002:a17:902:7c94:b0:13b:8d10:cc4f with SMTP id y20-20020a1709027c9400b0013b8d10cc4fmr36830152pll.54.1634691179432; Tue, 19 Oct 2021 17:52:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634691179; cv=none; d=google.com; s=arc-20160816; b=ZXOK4OdjRLqtOWJnDUtb+j2jCYF0Nmku1IyagusmxrV4CoIFbh3H22ebejS63Pj07k vwl7ihMFrqilH9CAFoj6i1GaGefHpQLa4huJJKtuAFbxKaaLxoPP0UEbiwvgTFMwLyR/ QCJezeKdHKLLMLUh9g1gJdNtAYn+H2PIVWJPJheiCKqwtH9hHReuud91eHLr1wJs7bh2 ggjrGEYuJyuU+LQwgFRgffXuAo/xhD2OzC0T2DdpJvQ0/udyeTuJhHkR3nCddBH9zuln T8Po14tQES7n/3XeekLIMYyf+RSo9j6Y+f+w2htp2XQnLfnVNKGdjlvnqZn8Bec3bTD7 4vmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Y8IDAlo8PwJY6JbQY3L7p4DCOilpHfw2KufvBESwzcw=; b=QMbOq90T23GghUYkvx9ZnoEEXbxWD1UoKhoj1n8jMcQtHE4XMgRQg9JrfAKnKhSu/d Tsbs8VndQpDgt6AtPrI2MciO7Jjjx2Bw/yrmjgpchxijOFWjdbCBMS07ymr+zWqdHXAv 4M4gZD5n9xG2+errd9aMYgmiEOY/BZ2WOmNT1lAd/T77njY2gvGOI2Dy+gFJKnZ8ILHh NPiWrLNQdZUpWZm5wQM1WUtRyhOjfssiJkSmjS57a87krgps+ALLzxtQqrXbyOzjb1n/ paAgM7CUj5U5mWJbHH3NZHKmm/8vh9LWZiLuynqICs3Ujn0lTUqabPv1TIPHL7rQy0X8 2q1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jX+KFrUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c10si942452pgn.220.2021.10.19.17.52.46; Tue, 19 Oct 2021 17:52:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=jX+KFrUb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229790AbhJTAw3 (ORCPT + 99 others); Tue, 19 Oct 2021 20:52:29 -0400 Received: from mail.kernel.org ([198.145.29.99]:46054 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229602AbhJTAw2 (ORCPT ); Tue, 19 Oct 2021 20:52:28 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 401A960F44; Wed, 20 Oct 2021 00:50:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634691015; bh=cOeWhoeUDvU0/o6OPXU3xhOyMuNbiH62/GnL+jUSlTA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jX+KFrUb0Q0KEijK4YJyHG0XsyFnXr5tT1K8hXsuXR203vHOOVwNPpM5xTOJsW0AY zDbhZqK8IxnwzzuC4uI/v0kZPGZlGlgKTLlCosHnl8U+VN8IxTw6tQF2D+RmGx/q6I qcThK0l/yq6r/klsqeNRpzLDMYliM4D4JK2GK86wY3kCVv6M9CYAJGGa9wVgHnRXvJ oQyoCDs7BxtKxsW4M4bgX1UPURLg7WXVddWFZP/YGchHYkIyVUjf1aXIQZUmYCZ5lW US3q+VV7lqP1ZmcPyL6ktyXC4pcPvPXrh9hBC7MfqMZ2qYOxi2jzBQH98uvQZqyKH0 R0CzM5BGB4OCQ== Date: Tue, 19 Oct 2021 17:50:09 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: Catalin Marinas , Will Deacon , llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincenzo Frascino , Lucas Henneman , Masahiro Yamada Subject: Re: [PATCH v2 3/4] arm64: vdso32: suppress error message for 'make mrproper' Message-ID: References: <20211019223646.1146945-1-ndesaulniers@google.com> <20211019223646.1146945-4-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211019223646.1146945-4-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 19, 2021 at 03:36:45PM -0700, Nick Desaulniers wrote: > When running the following command without arm-linux-gnueabi-gcc in > one's $PATH, the following warning is observed: > > $ ARCH=arm64 CROSS_COMPILE_COMPAT=arm-linux-gnueabi- make -j72 LLVM=1 mrproper > make[1]: arm-linux-gnueabi-gcc: No such file or directory > > This is because KCONFIG is not run for mrproper, so CONFIG_CC_IS_CLANG > is not set, and we end up eagerly evaluating various variables that try > to invoke CC_COMPAT. > > This is a similar problem to what was observed in > commit dc960bfeedb0 ("h8300: suppress error messages for 'make clean'") > > Reported-by: Lucas Henneman > Suggested-by: Masahiro Yamada > Signed-off-by: Nick Desaulniers Reviewed-by: Nathan Chancellor Tested-by: Nathan Chancellor > --- > Changes v1 -> v2: > * Change to suppressing via redirecting stderr to /dev/null, as per > Masahiro. > * Add Masahiro's SB tag. > * Cite dc960bfeedb0. > > arch/arm64/kernel/vdso32/Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/arch/arm64/kernel/vdso32/Makefile b/arch/arm64/kernel/vdso32/Makefile > index 1407516e041e..e478cebb9891 100644 > --- a/arch/arm64/kernel/vdso32/Makefile > +++ b/arch/arm64/kernel/vdso32/Makefile > @@ -38,7 +38,8 @@ cc32-disable-warning = $(call try-run,\ > # As a result we set our own flags here. > > # KBUILD_CPPFLAGS and NOSTDINC_FLAGS from top-level Makefile > -VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc -isystem $(shell $(CC_COMPAT) -print-file-name=include) > +VDSO_CPPFLAGS := -DBUILD_VDSO -D__KERNEL__ -nostdinc > +VDSO_CPPFLAGS += -isystem $(shell $(CC_COMPAT) -print-file-name=include 2>/dev/null) > VDSO_CPPFLAGS += $(LINUXINCLUDE) > > # Common C and assembly flags > -- > 2.33.0.1079.g6e70778dc9-goog > >