Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp1468747imc; Mon, 11 Mar 2019 14:37:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1VWFCSzjw7W2J6QYmxHzcoULPe0euTE/J1XevrZpUZFJdwoeNnzwwYNw3Vph89oR83FbO X-Received: by 2002:a63:43c1:: with SMTP id q184mr31313603pga.110.1552340271318; Mon, 11 Mar 2019 14:37:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552340271; cv=none; d=google.com; s=arc-20160816; b=jdK0jtQ2EwG4CF254DeM2DjjehV8xW9CUskoTnYXQpn9bi9/6GXnlqHI0ocUqlkYSW FT0N7I6vJP69aypiYJWE6iuEBYeHWl11sg9v5jxCyQS/s1BYT5dc6V+c3E6VWlxwUHlY jmKw61LGFdXhC1Kcdldfaf15h67ZOnAnOmrLvIdZ9p0ueWI2rXnTx9m5oYWImbIuw48I Gd1//AChRJuUuGrtZdN8IA6TkEIwYabytab7FVtCotsKVzlY/dRJJ3iNNw1FSwWIRp8B 8JcmyqYE7gkuh8B+SUEDuvke3sEIne3EwPTwMlgK0Ctu9KIVEYdcD1doJinq+HEMXq3z f3Jw== 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 :in-reply-to:references:mime-version; bh=OE2aYycL7Gv4WG0PwdCG8G+PdgNWJSiiyLW27YU//Vg=; b=xry8PC3/g975Roope8GdF9DpWpLuvHWyVXmOQE4rSfloL/eoPZ4y7oJTdf7ocw4k3R fvLIJWeXYz8TC0t99sNGjZbsbogDaRCTQ36EF+Z+pdQdEnXbQMzZG6R1rbUen8IjAGCw 99wPUlDSsqfBXmhj0TwjuCxUV2Y49ulywMkLkmfGNu7FwXRmA1TEPuvxTWjaW2ALyljA e8H3G4gFrd23SWiP7pl+9xUdGFp9noM5DrIlftYGxKe8xAbqa+ozyk4tTyc1mwOJLhY1 JLaDkn+UyZHApLryf+Mc5rOrgyLYGYIxhPNxQIWfNz2dDNYz9EPEOjHxZ9tn+/K5Hg+B 5Gzg== ARC-Authentication-Results: i=1; mx.google.com; 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 31si6673065plj.345.2019.03.11.14.37.34; Mon, 11 Mar 2019 14:37:51 -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; 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 S1728127AbfCKVhE (ORCPT + 99 others); Mon, 11 Mar 2019 17:37:04 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:36322 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727898AbfCKVhD (ORCPT ); Mon, 11 Mar 2019 17:37:03 -0400 Received: by mail-qt1-f195.google.com with SMTP id b3so334032qtj.3; Mon, 11 Mar 2019 14:37:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=OE2aYycL7Gv4WG0PwdCG8G+PdgNWJSiiyLW27YU//Vg=; b=ZugH7MC7vzMyqKGojaCQmD7AKXX8mWHoo+KOgWWfIDOxpq4TsMWKm3ffGKV7jX3prM KZHg5DKRuHOAoC3BqN164ulZLf6tvYne+MUSwhHqQWJDr2Aow24xZtmSC5oWAXV4h6+L WxGEllJhFIah4OhptkzKgx9tT8+x2K1r7QZfod3VPTS2bGioAG4CGDN81t/3T9PNbd4N WKFGzTQYbALoZw9NhErSsYSKyE0S0Mxcrqo7pUwupXwl7HgHmtiFlcDCy/bRsAVJkIX1 +017YzUurvkGbzd99thIr767VhcQUfjyWCmUzyoVS5Rx/W6x91LE+dAdDJdkl/As9x8l esdw== X-Gm-Message-State: APjAAAVh3WyEw75JyWNMHGNXKKwqadCK2GjwtPqpOgZlHGN6jS5AWcyp Jl12xLlcV1H5Qab8ug62VSzdidOlk+R5iyREElw= X-Received: by 2002:ac8:1b7a:: with SMTP id p55mr14190887qtk.319.1552340222778; Mon, 11 Mar 2019 14:37:02 -0700 (PDT) MIME-Version: 1.0 References: <20181215212304.19390-1-natechancellor@gmail.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 11 Mar 2019 22:36:45 +0100 Message-ID: Subject: Re: [PATCH] ARM: Ensure that NEON code always compiles with Clang To: Ard Biesheuvel Cc: Nathan Chancellor , Russell King , Nicolas Pitre , Tri Vo , "open list:DOCUMENTATION" , Jonathan Corbet , Nick Desaulniers , Linux Kernel Mailing List , Linux ARM 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 Mon, Mar 11, 2019 at 5:49 PM Ard Biesheuvel wrote: > > On Mon, 11 Mar 2019 at 17:22, Arnd Bergmann wrote: > > > > On Sat, Dec 15, 2018 at 10:24 PM Nathan Chancellor > > wrote: > > > endif > > > diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c > > > index a6741a895189..4600b62d845f 100644 > > > --- a/arch/arm/lib/xor-neon.c > > > +++ b/arch/arm/lib/xor-neon.c > > > @@ -14,7 +14,7 @@ > > > MODULE_LICENSE("GPL"); > > > > > > #ifndef __ARM_NEON__ > > > -#error You should compile this file with '-mfloat-abi=softfp -mfpu=neon' > > > +#error You should compile this file with '-march=armv7-a -mfloat-abi=softfp -mfpu=neon' > > > #endif > > > > > > > I see this patch has made it in now, but I also see two other problems with the > > same file that prevent it from working right with clang: > > > > - it triggers #warning This code requires at least version 4.6 of GCC > > What is currently the oldest GCC we support for ARM? Linux overall requires gcc-4.6, so we could just as well drop this check, good point. Arnd