Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1246927pxb; Wed, 20 Oct 2021 00:55:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNJ2ynPaaUxorJHHi/H6N4J9Z44zUTbpU62GvHEbfx8n2ByXJfQlpC7zX439WgneNKPe/p X-Received: by 2002:a63:7d04:: with SMTP id y4mr32812302pgc.131.1634716513421; Wed, 20 Oct 2021 00:55:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634716513; cv=none; d=google.com; s=arc-20160816; b=Fu9STdJjeVyHwse0iJahPy3pkFtc20rrdbfeKZfBQeccN+tSmilMKFDVLFU+56FfAH KFjFfiZ/3AlnPRCFWJYRrJmTaw9N5v2SACLfhtmDrHsRl7/e45FknDfTrfSWj12kfgOx O6c9BG0Tc4z3wsENSux2Fy5FXruOrRnN2+7mvNsKtXyoMfTkHvIpFK/3eM+5l5sMIhNJ 0IGKh24gtaXRAT7BihTZaNglzYkStAY3hXEbj2qo1LpL5YGyzkGCWH9BYWn0pPVOs4gD ldwK9NM0Lo0orq7AK54iIjgzpcMo2QttomPWHYY6XtRJR3hR6ixwQpmFdOvmprVvJO5m Pv4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=k6VN3q2pk26iRKeFTCdlYBHhtl6pCWUK9Yr3bCmeAuU=; b=GnBzE4NfBTCQnntn39gwMQbjiDCcWCYTbFkpbydnoPDAcOndAQ0v3UgDuW5/nXF3yk 2AtDl6BS+7uUQ8BMhOQ2KNBwXJZybzM3pLnBDfd/LNg7BAX1k6O1P5JaO3aQckOLG1mo 2hLPlxryccWaUUa+HFHZ3Dn8lGch/esFQwW9taeNkQ7inehEgxNXxjFH7iy5l0kBNiPz rL9owdJG13aye03yCFxcpq+G4VVwTO6W2vtPKBTcL4xA7XSEgTpYdtO44Bb4oGmXf9nd w0nGl8G5fKMSorYrx4HtANcmGfyhx3oMTv/8VgaLPsn2oSlnKP63tzpJBLZcWhF+YGe/ zQuw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id q28si2365073pgu.255.2021.10.20.00.55.00; Wed, 20 Oct 2021 00:55:13 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229610AbhJTH4P (ORCPT + 99 others); Wed, 20 Oct 2021 03:56:15 -0400 Received: from foss.arm.com ([217.140.110.172]:57112 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229503AbhJTH4P (ORCPT ); Wed, 20 Oct 2021 03:56:15 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 218D0ED1; Wed, 20 Oct 2021 00:54:01 -0700 (PDT) Received: from [192.168.1.131] (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 0E64F3F70D; Wed, 20 Oct 2021 00:53:58 -0700 (PDT) Subject: Re: [PATCH v2 3/4] arm64: vdso32: suppress error message for 'make mrproper' To: Nick Desaulniers , Catalin Marinas , Will Deacon Cc: llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Nathan Chancellor , Lucas Henneman , Masahiro Yamada References: <20211019223646.1146945-1-ndesaulniers@google.com> <20211019223646.1146945-4-ndesaulniers@google.com> From: Vincenzo Frascino Message-ID: <145cec53-b20b-bdf2-1209-eb457aa72f44@arm.com> Date: Wed, 20 Oct 2021 09:54:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20211019223646.1146945-4-ndesaulniers@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/20/21 12:36 AM, 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: Vincenzo Frascino > --- > 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 > -- Regards, Vincenzo