Received: by 10.223.176.5 with SMTP id f5csp2256701wra; Mon, 5 Feb 2018 00:35:34 -0800 (PST) X-Google-Smtp-Source: AH8x225/WDcNJfxSy0yjrCYkSQwIsN2ImbKZBx33gw4uXaJSIkCkrpqKWz4TyfTwL/j/n2KI3PdI X-Received: by 10.99.139.199 with SMTP id j190mr5712347pge.188.1517819734069; Mon, 05 Feb 2018 00:35:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517819734; cv=none; d=google.com; s=arc-20160816; b=ykXhhsPjXvY0qaqWCmnpzq5brXb+Guqx7Thm1aUfPtBpWmh9TU6ZB/PMcPHiW4CoML c46qeeWJ+nMXansqgZrbGVbhtvKJAvUon7ASYx9CzzhvpUC2YpdnGe4V56zJCoJEpyLK /7bq5NyM57Qdd6lFLNAAbGUpE+k/49r1zzhfYD24lHpizQTqFKKu7ITe0VpwgzEopgRQ JqrCC48btx67UGRcHxTi1YZqU1tgaNv90ZfNqY0mrw/Vchzc3Iiy0DTm56Fd/ecQoMl3 LYY+y+d/XBX2jw/eWJg0et1QxRmqKxwBfG0lDuhypyfI0sjkKGEPukpkDRmu0sGfdovX eZFQ== 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:arc-authentication-results; bh=8yYRAUByUnYeg0V/nyvqkysIrFdI4GTmJ43YF2GFgQM=; b=aOoODvrxAAiEhZuKsjt+vXBsB1ymQlrpQFfl2APbOa9R22pzJaRSrV3Sj9bU1PMiwn FkmnLDPAkhbLu6luW9P/OorxBHtSW1qWfo8abZKT3ttRXp54K91LJcHDWkYso4SOviuG 2TDdSSJSsNtKZv/x87G/QRGRigVquJ/0pSZIUKlyOo82lbwHoGzakQCIpt+Ool6bmEIU kAx9UMV7dp05WGip1kmmGcVIPHr3QNLkE4UfgXtN/GJrvSyoZNf2P3/5+G6JZn7XrjWH NrL4epSlnvoKj+bU5zSvF/XFVZe4bm7bIrMBLd1sNt+xL4kH20WxkfBgZNQrSy1L4Sjx dA9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PkxxmoRa; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f15si5182610pgv.204.2018.02.05.00.35.18; Mon, 05 Feb 2018 00:35:34 -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=@linaro.org header.s=google header.b=PkxxmoRa; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752688AbeBEIdW (ORCPT + 99 others); Mon, 5 Feb 2018 03:33:22 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:37591 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752649AbeBEIdT (ORCPT ); Mon, 5 Feb 2018 03:33:19 -0500 Received: by mail-wm0-f68.google.com with SMTP id v71so24064549wmv.2 for ; Mon, 05 Feb 2018 00:33:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=8yYRAUByUnYeg0V/nyvqkysIrFdI4GTmJ43YF2GFgQM=; b=PkxxmoRazUIfjj1DEFVsFi5s71pt9aYdBDDHu6HV6zpG2lz+nrFafpEBmWmOpme+ic ZMbIe2dFzaI+eYPeX4ZXfmhNODc2Vht1s57MAo7IqjZzs1yledclDRKrt0v692IOOsO5 dPoyjPQRCtejq7oiG/PhJ8GBH68LIelYAd2JU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=8yYRAUByUnYeg0V/nyvqkysIrFdI4GTmJ43YF2GFgQM=; b=dcPkHpdlMOLCh+aHAmiBfEb/jWG14s5HE63+IcNfsbT8EgPuJFDu7ZXNHqLxZNZJSu ac0TyzwYhtIuhQjhaH4+N6zsIrJhIln5xfhc2KPgWRoCpKL+3jajHSkbRspU0tf+8+UP CC5MVsmHk2TLn9Ok7lLeR6v9BxAt6v/osJljnyt4e7k3V+8kfZf7lJbZIqvOyAdwltmJ JQ3p8IchFGuE1zGy/qU+kVwbE/fEnn3AXg2Xr5iso0ZLPoXMCHg4cON1kCdZCdwEErF9 tOvguQP9tcPvjB4uQWkBxfkVb7CNWykDqCuuPJ/dOGSYvnsZJT3EEK7lB2kRxLV2iH95 ZSGg== X-Gm-Message-State: AKwxytf62ukjpfMagEWS3q3keXmTOXNitbg7NR5jQFTxnLW9aHlfl2Y7 kbYoKhfn2BsUvGAMHg6oyUY6eQ== X-Received: by 10.80.139.155 with SMTP id m27mr75372710edm.98.1517819597883; Mon, 05 Feb 2018 00:33:17 -0800 (PST) Received: from localhost (x50d2404e.cust.hiper.dk. [80.210.64.78]) by smtp.gmail.com with ESMTPSA id 15sm7526990eds.54.2018.02.05.00.33.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Feb 2018 00:33:17 -0800 (PST) Date: Mon, 5 Feb 2018 09:33:16 +0100 From: Christoffer Dall To: Arnd Bergmann Cc: Marc Zyngier , Russell King , Nicolas Pitre , Andi Kleen , Richard Earnshaw , Tamar Christina , "# 3.4.x" , Julien Thierry , Linux ARM , kvmarm@lists.cs.columbia.edu, Linux Kernel Mailing List Subject: Re: [PATCH 1/2] ARM: kvm: fix building with gcc-8 Message-ID: <20180205083316.GR21802@cbox> References: <20180202150756.420422-1-arnd@arndb.de> <20180204184517.GQ21802@cbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 04, 2018 at 09:57:49PM +0100, Arnd Bergmann wrote: > On Sun, Feb 4, 2018 at 7:45 PM, Christoffer Dall > wrote: > > Hi Arnd, > > > > On Fri, Feb 02, 2018 at 04:07:34PM +0100, Arnd Bergmann wrote: > >> In banked-sr.c, we use a top-level '__asm__(".arch_extension virt")' > >> statement to allow compilation of a multi-CPU kernel for ARMv6 > >> and older ARMv7-A that don't normally support access to the banked > >> registers. > >> > >> This is considered to be a programming error by the gcc developers > >> and will no longer work in gcc-8, where we now get a build error: > >> > >> /tmp/cc4Qy7GR.s:34: Error: Banked registers are not available with this architecture. -- `mrs r3,SP_usr' > >> /tmp/cc4Qy7GR.s:41: Error: Banked registers are not available with this architecture. -- `mrs r3,ELR_hyp' > >> /tmp/cc4Qy7GR.s:55: Error: Banked registers are not available with this architecture. -- `mrs r3,SP_svc' > >> /tmp/cc4Qy7GR.s:62: Error: Banked registers are not available with this architecture. -- `mrs r3,LR_svc' > >> /tmp/cc4Qy7GR.s:69: Error: Banked registers are not available with this architecture. -- `mrs r3,SPSR_svc' > >> /tmp/cc4Qy7GR.s:76: Error: Banked registers are not available with this architecture. -- `mrs r3,SP_abt' > >> > >> Passign the '-march-armv7ve' flag to gcc works, and is ok here, because > >> we know the functions won't ever be called on pre-ARMv7VE machines. > >> Unfortunately, older compiler versions (4.8 and earlier) do not understand > >> that flag, so we still need to keep the asm around. > > > > Does "not understand" mean "ignores" or do we get an error? > > We get an error, which is why I used the $(call cc-option) Makefile > helper to check if the compiler supports it. > Right. > >> Backporting to stable kernels (4.6+) is needed to allow those to be built > >> with future compilers as well. > > > > This builds on the toolchains I have on my machine, so: > > > > Acked-by: Christoffer Dall > > > > Are you applying this via a tree with other fixes or would you like me > > to carry it in the kvmarm tree? > > Please pick it up in your tree. > Will do. Thanks, -Christoffer