Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp896340pxb; Tue, 19 Oct 2021 15:39:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwBQWT0MWKW57d9FqRCA0seFTG7UwQ1MGuf2T7EQjpm4Ly6wUPiK4yjb85Lyi3bIboYAjqI X-Received: by 2002:a63:6dc1:: with SMTP id i184mr15683293pgc.165.1634683158988; Tue, 19 Oct 2021 15:39:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634683158; cv=none; d=google.com; s=arc-20160816; b=JJZ7fLYD0UsplUlDTd1HclG1DDiWTpNEhd5ihWEQHvbdbBKJ6J6oXIJqsoFlO2aov/ Xjpy5V9lubQ/vFSrfcmNn0aSXZ099MxSjwMoRcYsnWjizCGxD3i/TMn3tTJ2eYvuiWOd xWpTSQU8xdvDHVkN2Uxd0ZwWTioJf1Phr3R/bq376SoI2coq5ygspcLoPyucOUnPgtNs 4E94vG5ueDHpH4L8ryoehDs+X2TsHQo9KGgOBoQ11krmNI4Q3knm5B+H/2oH17UVOWTZ MYb3SgR9NqEdy8xSQ3sRZdB5UgSFFodAX+A9uk/NY69VwMMHLBZaUTQfQj9j5vs+JU0R afhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:references:mime-version :message-id:in-reply-to:date:dkim-signature; bh=VYYzFbtg9v9uYxEoyPeKXiW1szMtPubg10b/PAxgSlo=; b=CoB7s05dwJhVy5VzDB8f8yJTL+g6i7oTe9/I+aS7PQwbXUrZBLuuHK/rjIaZVAGmEC J1uwBG/v8d4EzinX5GKv9nhN95aME6EoDXBc8PKkjxCqcfS8BhiOCyy3YaUU2sE3yKVg XlX0axHgSgR75cZsDQen4pbdl2ZcU1njX+/ixdXIVsP+7iDAOUk8gevAxgcF2EMKXkAH VBRSM7IiMtvQRitLZN11BMfA4DARyzbQcovcqbkh2kcukm3w7fs2f/9nMKV/QlEmWs8P Jg7bGtbLV9WehQsjvg7Yyzj7VfI8hTYl7Lc0uTJlXU9H0m+yhv9+emugT9JCLHYO1UOl hyhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b="P/eAIE9t"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si487926plg.272.2021.10.19.15.39.06; Tue, 19 Oct 2021 15:39:18 -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=@google.com header.s=20210112 header.b="P/eAIE9t"; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229980AbhJSWj0 (ORCPT + 99 others); Tue, 19 Oct 2021 18:39:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35192 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229735AbhJSWjP (ORCPT ); Tue, 19 Oct 2021 18:39:15 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A455C06174E for ; Tue, 19 Oct 2021 15:36:59 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id i83-20020a252256000000b005b67a878f56so20821582ybi.17 for ; Tue, 19 Oct 2021 15:36:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=VYYzFbtg9v9uYxEoyPeKXiW1szMtPubg10b/PAxgSlo=; b=P/eAIE9t9qFsmOQDu4H456xxeFJ3Vkto2vyDtoqZjgvzOwZNlvZmPpM0Sh6JTLHncz CYalQVIr7MNV7ME6aicxY56kbBmtCNpLBLqSU7bDdG5t8Hh/K8cOgjDjLa41cS2Nucj/ VTDTqMNWqbGlcGGUE0BfMB4kouEsOqF8BBpEAQKCMY8BnYZe86RWewujSOxolKk1vX/g UD2EJFVstgRFE/b1PYK68bSUvE7gZJCtpg+wanBc5kQTxv3bNIDNrIdpL7kJLBud7dGE 6Dpq9f63a0mnKkV8d4VCuApFnjrG43JmEhp4N66+GrL+D1ASWMIm+c6sFd9hgWsEb/TH olMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=VYYzFbtg9v9uYxEoyPeKXiW1szMtPubg10b/PAxgSlo=; b=ETvw3ATSwvWImE3ojLra/HmLAMOijcSiU6xCK7gKh+mlc3xO6qstEUWdF/PU6PbsyI 7+6tz20lb+bdVAKuMBd7Lg/baJj9/o+cIB+UrinyrZsO0lHyb1QBFGzJEvhs9LABYbRj B7UGUO7HreMQyLVU/x0Kf1yw7AUUAS4LdkG+BBN70jyvQWgh/QEr5IUlwA+ZfeLX4LL+ ueDsBSWfQL96IUmrGegFu3O4O3Q1CBNfKXHZndhIsSeCbEkkqOoKzvsTyNTLL9qf6U30 Yyt5j4M1ufHlq4PGtjp6i5x7I+dGL/qqEV7bEmeP51vuvFAX6GoCXTWyp+wmEUsQVCzd FezQ== X-Gm-Message-State: AOAM5305Z8SgW79Wt6E009AXpe24lyQlqiDZyEFEfuBKOTM90/XJYU+Z 160bR/2Afp4xAGXozwtlpQryGEeVWt7jEEy3CGg= X-Received: from ndesaulniers1.mtv.corp.google.com ([2620:15c:211:202:de0:247b:5157:7c15]) (user=ndesaulniers job=sendgmr) by 2002:a25:bd7:: with SMTP id 206mr41112924ybl.408.1634683018922; Tue, 19 Oct 2021 15:36:58 -0700 (PDT) Date: Tue, 19 Oct 2021 15:36:45 -0700 In-Reply-To: <20211019223646.1146945-1-ndesaulniers@google.com> Message-Id: <20211019223646.1146945-4-ndesaulniers@google.com> Mime-Version: 1.0 References: <20211019223646.1146945-1-ndesaulniers@google.com> X-Developer-Key: i=ndesaulniers@google.com; a=ed25519; pk=lvO/pmg+aaCb6dPhyGC1GyOCvPueDrrc8Zeso5CaGKE= X-Developer-Signature: v=1; a=ed25519-sha256; t=1634683006; l=1704; s=20211004; h=from:subject; bh=74hCoLStsXal7EECTyeA4v4ANHbGr/aLrzSq59yc++w=; b=NMtRKTwXJOcg7HCEHcr4qlyA51nWYLdppfUbMlsepaH/P2iZVOh62wivzOpTO7DmNm1ywvKsULyi 90vwOhN3CX+banOlQxJJQe/9xRZvNfnyvhmezJeuqNJ3aHFhGagP X-Mailer: git-send-email 2.33.0.1079.g6e70778dc9-goog Subject: [PATCH v2 3/4] arm64: vdso32: suppress error message for 'make mrproper' From: Nick Desaulniers To: Catalin Marinas , Will Deacon Cc: llvm@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Vincenzo Frascino , Nathan Chancellor , Nick Desaulniers , Lucas Henneman , Masahiro Yamada Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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