Received: by 10.223.176.5 with SMTP id f5csp1821029wra; Sun, 4 Feb 2018 13:01:01 -0800 (PST) X-Google-Smtp-Source: AH8x227YlIAd8ekCo8RrrZtVpheIa0pJmOm3Fp7C98Ldy8tk5oovyaOMI7xDObnxSCjIxCVLq7s3 X-Received: by 10.99.103.198 with SMTP id b189mr11621099pgc.20.1517778061007; Sun, 04 Feb 2018 13:01:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517778060; cv=none; d=google.com; s=arc-20160816; b=f/vxlZ5KYV8Zp3rB6eAUhwytdG2cvH6lIxw5Z4f/hdsoXa/9nznuJ9jqzc/Ki+DoH7 jTSYNdlUYLd7z4YwpIKTb24MOQErZa//DEMdxPFO92PhL+XEQMcbizPNsBnlKGldWcUu CP/i2XffOWBiXpNUe0l7EXTZvjeTS8uUxCCajefJjWfXdUzsrEuZr1HCt3fjsX7x+IWF UrJ0XEdp7obteA7NWEbaQbu0O1c3tOb9PtnLtyKqmsccC+nHc6cyHrda5GdhRz5FpuQZ OsOueqMZOtc8oi8Eo9nRkh2IYv8GBWy6JIceG9UtQkzfrId1UWJer5/BIbww//zeTPou n02A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=D2WorI7SBNAufrqqcTSQAmsficQH+9PqDfb6wgyPU+4=; b=M1RHPhJ9XeC0p6UIADiRdfOCRHj9VYV3NVzTi7utKL4jRzvtRdk7F8pQIdi5e/75y8 NztHa5b3QHDAlbrG9ZC02Z3ReZm0R8NPSxUDqcEAKyV/Ove7EDVQ59Q4/X3sn5uV1bRq STEkdrNCI39mEPS6sXuxT56JvkO+Qk0dsMYSDzYfD9rGDZo6lyR0u08a1Fh3G40qwJuz 9mEaJVCeejPyUUCW+thSIrtQ0hE/GVareziS+Sb9uYITO5k+BH9LlZCYl3kC/+OcS4gb 4ML0diNlHCeG5UrVq0M2iOUAQnJp2SwaRwY1Tq2h0DkBjlrNgqLx7XYn1e054zS9gp2r qozQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=POEzQ/Vm; 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 e19si955851pfb.211.2018.02.04.13.00.34; Sun, 04 Feb 2018 13:01:00 -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=fail header.i=@gmail.com header.s=20161025 header.b=POEzQ/Vm; 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 S1752536AbeBDU54 (ORCPT + 99 others); Sun, 4 Feb 2018 15:57:56 -0500 Received: from mail-ot0-f196.google.com ([74.125.82.196]:43543 "EHLO mail-ot0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751724AbeBDU5u (ORCPT ); Sun, 4 Feb 2018 15:57:50 -0500 Received: by mail-ot0-f196.google.com with SMTP id q12so7837090otg.10; Sun, 04 Feb 2018 12:57:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=D2WorI7SBNAufrqqcTSQAmsficQH+9PqDfb6wgyPU+4=; b=POEzQ/VmudQ55/FZQarCslKMABT4F51mZfSuB+SNEx/rlpaLIs7TUkbsy/Hdi3X7qb LV+fiecchxNNwkJ5niw7lt9oYYlNb9KxTSjho3Tht1w1eg5VAk6e9YCejqNZlNqOZ3+M 4EiDX4A1j6g4mkrYov4wD4ed2laJrl+eZX8LmG8RNYqIuFIWQtVv2fiWnvZBoVVs9KUp QCb2BoxvcMJM6A0vRnY2H1oR95SMR6fYUugWOm3n9B+eWQAoD43brOaI+cAaPLGhESGk Oy6Gja0+T4x0osBOcxOzU2qHZo93DclkbJqw2HrbhALMfzFPvsil+dLnS/WRsX1y/mTt SWzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=D2WorI7SBNAufrqqcTSQAmsficQH+9PqDfb6wgyPU+4=; b=oJCYZCS0ojz5ThAPDl9ST9Y3oGK04bKpUvLqeWzgyLwv000ooxC2ThssXkh98gAhLB RAYN9E06z77fiDuzg14UNJBBIQhEDBTJJ+jkUYWxKuu+G9OsAFN4NMZO+G9b4bKOs/a2 q+rZTrmi2Y8LqwWxyimXUxxL9eQCgCiV/93Tgg6re/2DGQMFvgBi9k79IjN7PUB95fz3 4rTSAY6AiIkv6Ko2BjdUPOhpa0rqynJaRDEoCqLCLA0jczYcgpnPXThCpom/gYEaScNL wY/M/iIZLJpJEzZBjfF78q3MjihWOsJUHHwA3kbW6yMGAA3Zshb4fZXItZrFRHGBBbpP mq7Q== X-Gm-Message-State: AKwxyteg5L0aLlyftQrh+ocnRmkTia2jOaEEx5k4FpbuYinkq7PeBDqZ 70nIKM5yxexbWAyCyagxztt1j66/IQeBbVpQCJM= X-Received: by 10.157.69.6 with SMTP id w6mr6805939ote.351.1517777869522; Sun, 04 Feb 2018 12:57:49 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.68.33 with HTTP; Sun, 4 Feb 2018 12:57:49 -0800 (PST) In-Reply-To: <20180204184517.GQ21802@cbox> References: <20180202150756.420422-1-arnd@arndb.de> <20180204184517.GQ21802@cbox> From: Arnd Bergmann Date: Sun, 4 Feb 2018 21:57:49 +0100 X-Google-Sender-Auth: E2FpVQtAE0LJpReuYUbT6WUSWg4 Message-ID: Subject: Re: [PATCH 1/2] ARM: kvm: fix building with gcc-8 To: Christoffer Dall 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. >> 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. Thanks, Arnd