Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6167818ybi; Wed, 31 Jul 2019 09:25:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqxz1ylhT8DMIriOlaCiR+N4gFPmmHYKCR/Xs5p14mtDvPz5tsoxi4Un87bON/RX/VZpBM7I X-Received: by 2002:aa7:9e9a:: with SMTP id p26mr49382785pfq.25.1564590344906; Wed, 31 Jul 2019 09:25:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564590344; cv=none; d=google.com; s=arc-20160816; b=MVnhrbTWpJ1EPS/o3tXsF3pg4kjfK+BO55lmwCOG+/DgpjoC/zp34jhy0St3am3/RP Mg9NXxx+/pr8R2yfT95Gv3LGzhnhBDr6m+jH3y3jSSN9rLliRuejufN1jz2s36zRX/37 nkkgdbkJ2kp4GFt+sJV3Ix7uxh/B0EB8venlZd621K9mlY942tg50u2YuqoohvlHIHuQ 8E8O2ZF8odvGhrlY1B5qivIIgw9iT+u9ovqusudck8S/wviFzmY6+f0L6eVGFcKdvXrf 2U74j5T1CEJqH+t60emF0YNStzTxwIBH2cc44oHe/g1yXWWh6GgOCjKZCGphhvEWiLG2 +C3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=jtKmMqUkOoJcIzENeYb3iUEF2HNJvMW2EM6KMFZdSrs=; b=GsuCfiBxEkMsXjgfVxl8OU5PaXWGF+nZQ2HftoZm0N/JIOjIRZwUnTlOMocpnYK0Nv zenb47+tAV6CKxQhJ2hROXh4g6RDPdrml9JMUYfU2/OtWpA3Tz78jBttiBqqNftKqbL/ znA+vSG2hteaAALyIyPhciY4/iJW280B79vrDu4klGzRPPnWtK97BhehfH9CHPPLVilk CwS3X7yzU/dvwjEFLhmqZhG7lxNolgO+rxLtBpLoMVzT4+F/ZIClik+CxVORLL7X22Zg /wcFvIbuqJrTUEkdvb/2o6/TdXYMGALI8m4OReSl5N/o9ds5TzxMwmSAJwI9uZhXwcMW GDbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D44JUbuy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 1si29114606pli.151.2019.07.31.09.25.29; Wed, 31 Jul 2019 09:25:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D44JUbuy; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1727485AbfGaQXQ (ORCPT + 99 others); Wed, 31 Jul 2019 12:23:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:58658 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725209AbfGaQXQ (ORCPT ); Wed, 31 Jul 2019 12:23:16 -0400 Received: from willie-the-truck (236.31.169.217.in-addr.arpa [217.169.31.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0B1F3206B8; Wed, 31 Jul 2019 16:23:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564590195; bh=fONs4BmZttEHPUKNIEeG8afpWoHG1Ramxy67XPpPajA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=D44JUbuyGA42vB4ZF39we2YnbDD4WU6p1kIXD+46Hx0pzXbYxSOckTA97vCFO1ipg wH1v9tT8ZPQLGiCC7rdTep1hDWwnO6XsJHzqY0qm1rnxrL61jnMF/LD9s5t+iOS6Bs ArsM59Htt9AJU3/IxBzAsab4hjUew2T1H5FCi+Mk= Date: Wed, 31 Jul 2019 17:23:10 +0100 From: Will Deacon To: Vincenzo Frascino Cc: linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, catalin.marinas@arm.com, arnd@arndb.de, tglx@linutronix.de, salyzyn@android.com, pcc@google.com, 0x7f454c46@gmail.com, linux@rasmusvillemoes.dk, sthotton@marvell.com, andre.przywara@arm.com, luto@kernel.org, Matteo Croce Subject: Re: [PATCH] arm64: vdso: Fix Makefile regression Message-ID: <20190731162309.6sqeylyoauv7seeb@willie-the-truck> References: <20190729125421.32482-1-vincenzo.frascino@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190729125421.32482-1-vincenzo.frascino@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 29, 2019 at 01:54:21PM +0100, Vincenzo Frascino wrote: > Using an old .config in combination with "make oldconfig" can cause > an incorrect detection of the compat compiler: > > $ grep CROSS_COMPILE_COMPAT .config > CONFIG_CROSS_COMPILE_COMPAT_VDSO="" > > $ make oldconfig && make > arch/arm64/Makefile:58: gcc not found, check CROSS_COMPILE_COMPAT. > Stop. > > Accordingly to the section 7.2 of the GNU Make manual "Syntax of > Conditionals", "When the value results from complex expansions of > variables and functions, expansions you would consider empty may > actually contain whitespace characters and thus are not seen as > empty. However, you can use the strip function to avoid interpreting > whitespace as a non-empty value." > > Fix the issue adding strip to the CROSS_COMPILE_COMPAT string > evaluation. > > Cc: Will Deacon > Cc: Catalin Marinas > Reported-by: Matteo Croce > Signed-off-by: Vincenzo Frascino > --- > arch/arm64/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile > index bb1f1dbb34e8..61de992bbea3 100644 > --- a/arch/arm64/Makefile > +++ b/arch/arm64/Makefile > @@ -52,7 +52,7 @@ ifeq ($(CONFIG_GENERIC_COMPAT_VDSO), y) > > ifeq ($(CONFIG_CC_IS_CLANG), y) > $(warning CROSS_COMPILE_COMPAT is clang, the compat vDSO will not be built) > - else ifeq ($(CROSS_COMPILE_COMPAT),) > + else ifeq ($(strip $(CROSS_COMPILE_COMPAT)),) > $(warning CROSS_COMPILE_COMPAT not defined or empty, the compat vDSO will not be built) > else ifeq ($(shell which $(CROSS_COMPILE_COMPAT)gcc 2> /dev/null),) > $(error $(CROSS_COMPILE_COMPAT)gcc not found, check CROSS_COMPILE_COMPAT) > -- > 2.22.0 Acked-by: Will Deacon Will