Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4489144ybx; Mon, 4 Nov 2019 14:16:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxK058OsU0lzXV+dTb4eDOc35XN4sZVUl1dwhAl0OsDqjT/o2zYnJwYGKixZJaWopT8oqZj X-Received: by 2002:a17:906:d293:: with SMTP id ay19mr5985904ejb.146.1572905776615; Mon, 04 Nov 2019 14:16:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905776; cv=none; d=google.com; s=arc-20160816; b=GpdVLwhjVOZqYgeItIO5CazqNaUFv+rT1by4KKTNNZ8gpsWjK9EXcJmQ6PQ1hdjDEm LaRmu4GZsBBZ2ho9uHcbCPv4nh1WZlaPFEW/7pcrHDeXQ9CnP1RgZ3H+ef4stnxB/JjE 8NZThOAFhTLXZjyDAlglWQQ8Iohh0tOFQXfCb7qh+n1tAjHpDrUOr7ujExMCQ8T+rGlH hOsA4W+HWDstOAvHUoaBghBWh4R4zuw0t6sFv66hr3WifqufOI4lIT6qlwYqD1SKeMc8 IU4Gg7COJdajtqnXz1M+2TXKp88PGNpY/Ag7+deLye6bbGewEpBed2lGXwTsUMY16DfT K/rg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=dRvOFYIcU+6Z9dUkHcownJBvTtWTEeLYC7Nmkon9Pco=; b=v2wKQ8y0iEoObcfY8pBH12uCG/imtqVglYBH6zupuGi4d6ffr7jyezkfW2LW5IDWNy ArYi9Mj2371fmSxUiWhn6TUeDp+klGG22ojhpTmDUo3XZmVzkYb6Zs3s2KAowl4WW90g jY2bHCRoChho4n2gYSLPOiI6IcSW6VnevWa2uAoNOe4UcpODnLEYhorKGEZtw7RhMWqA 1647RKv67OX26rVHY/sCvoyQAXI64inTRGIJcnTJ0gFkIAG1WOqDbARdDOqk4SUpqr1n lpUAdQeIrj035J7iFrw5WkCUFTNF4AAW0Eb+XiCjyestS9ltksYH5h/+k8JYsOU40+WZ w/pw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="tIfj/tHu"; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si5132324eju.377.2019.11.04.14.15.43; Mon, 04 Nov 2019 14:16:16 -0800 (PST) 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="tIfj/tHu"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390043AbfKDWOj (ORCPT + 99 others); Mon, 4 Nov 2019 17:14:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:39732 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389164AbfKDWHS (ORCPT ); Mon, 4 Nov 2019 17:07:18 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (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 992212190F; Mon, 4 Nov 2019 22:07:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905238; bh=OPQh/w0HN7ptn6tENX2+5V6kRqT+2oS1MekYamXmnGo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tIfj/tHu0GmvdSMe86ucVbWpFlSAh5peYxJfHWze3ZxGfJTsRyEH53a+Sy70v1vwW lFZJ+Hwyej+Y7/NndhPuD1mL/6UBisf1S77JFS17yYT4q64OeVmYq6TMUklglm5hQS rEb+bgbrKIvtanVLKNhQsleV51YySt36apvRFu3c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Catalin Marinas , Will Deacon , Sasha Levin Subject: [PATCH 5.3 049/163] arm64: Default to building compat vDSO with clang when CONFIG_CC_IS_CLANG Date: Mon, 4 Nov 2019 22:43:59 +0100 Message-Id: <20191104212143.742987092@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Will Deacon [ Upstream commit 24ee01a927bfe56c66429ec4b1df6955a814adc8 ] Rather than force the use of GCC for the compat cross-compiler, instead extract the target from CROSS_COMPILE_COMPAT and pass it to clang if the main compiler is clang. Acked-by: Catalin Marinas Signed-off-by: Will Deacon Signed-off-by: Sasha Levin --- arch/arm64/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm64/Makefile b/arch/arm64/Makefile index 9743b50bdee7d..5858d6e449268 100644 --- a/arch/arm64/Makefile +++ b/arch/arm64/Makefile @@ -47,7 +47,11 @@ $(warning Detected assembler with broken .inst; disassembly will be unreliable) endif endif +ifeq ($(CONFIG_CC_IS_CLANG), y) +COMPATCC ?= $(CC) --target=$(notdir $(CROSS_COMPILE_COMPAT:%-=%)) +else COMPATCC ?= $(CROSS_COMPILE_COMPAT)gcc +endif export COMPATCC ifeq ($(CONFIG_GENERIC_COMPAT_VDSO), y) -- 2.20.1