Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp961008pxb; Thu, 12 Nov 2020 23:51:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJwANx/dA1A7jXlG/cS96uUkLL+zrMEEkGVdEJ4ZKfYPf+yvtuiN42qPz0L/SDeSKCX7v1L3 X-Received: by 2002:a17:906:f10e:: with SMTP id gv14mr781003ejb.346.1605253884700; Thu, 12 Nov 2020 23:51:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605253884; cv=none; d=google.com; s=arc-20160816; b=iELLIl2sWlY2CEoLaWeIs+zkuujCvOw+Kx4RhELGZc/EEbHFqwj3/JELVSouclvmUz oQeynw0pAtrBBYKRrUMvsA4YmwpDxWwPPSIYjltILw0NW312JZ3caVVb+Ot7GJ5hjzHH RjSNLbq7rrLIpzDm/O3GNaHoy/LtbvuN2NkvfW3AcoSB8C3UGGp5nNuoeRWaMUGehFQW 46r14mNvXFtZBO/4O47TIIlcBxG0PpExN70pfwZ/+30O9oPSJfgyUevHJvVEFdbJhTSF WR94w7AiijICajixde/Qk8pnr2mJREAGps6J2x2QgaB0Gps17+fKr8V7FZdFpUpenU3P fePw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=cziHMHVW6awdeUUGEJqHUO9gG2QH8VqUYgUUuhp1IQA=; b=bzsX6FkIwpv/vHs6STKDQL1uh4oWBsSQn5Dm/v28tQgpZHuELkivV1m+GdGqmqCJuX mdtohrAWyZCi0p5FJcWoX5PZbvfRf0nEVUyMQJ9ESbx4hRSl6I0L/CJps178Orore/Hr UCtE9psyW0XFzSZTMfqn63BDHCbond0LLxhHSuHvohohJyG8mNJlFh88LAH2hqTOIvqH ZEcwRU4k1RMIs40EzKcXf7TrFUNpvzkt7xgMsDGrQf8nJH02GCKn9eBtF5kLv+uLye1h KiRxNyA9KaIiAmxa8TgCXDpPsw5rsZ3dveX2cR/cnUr/vmViiK7ymEUr7/aMm8czRtJx Yd6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CjvOtupr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id hd32si3063436ejc.160.2020.11.12.23.51.02; Thu, 12 Nov 2020 23:51:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=CjvOtupr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726172AbgKMHt1 (ORCPT + 99 others); Fri, 13 Nov 2020 02:49:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:48184 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726133AbgKMHt0 (ORCPT ); Fri, 13 Nov 2020 02:49:26 -0500 Received: from mail-ot1-f50.google.com (mail-ot1-f50.google.com [209.85.210.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 004EE20936 for ; Fri, 13 Nov 2020 07:49:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605253766; bh=8kvl6kbcf3I7sjDJ7WflrDos9Tai0vUrQQSTGsyMk4U=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=CjvOtuprdR/aiRjhZYzmc9gonc/53vpRt4Kvk+nv/KF7Yt7cG/sFysr67RBom2aNk VHTbSEwcGeeVt2I2pn8fgneQHT82532go/wdIohJqawMZHRsuHrFnnRLrxxDRuMOOV PATRqBS6jd1K+Vl5GvFPDMIVzTRKqa9677NOuRyc= Received: by mail-ot1-f50.google.com with SMTP id z16so8185384otq.6 for ; Thu, 12 Nov 2020 23:49:25 -0800 (PST) X-Gm-Message-State: AOAM532Npv4y+K4wrZAmzx96bl+ngcaoeQVdy1k/shKRHVJMPhZadK2+ jtbuIG+GEETaS1Aucja84cvNGpmmgb1x1eQRtXA= X-Received: by 2002:a05:6830:115a:: with SMTP id x26mr701341otq.77.1605253765263; Thu, 12 Nov 2020 23:49:25 -0800 (PST) MIME-Version: 1.0 References: <20201112212457.2042105-1-adrian.ratiu@collabora.com> <20201112212457.2042105-2-adrian.ratiu@collabora.com> In-Reply-To: <20201112212457.2042105-2-adrian.ratiu@collabora.com> From: Ard Biesheuvel Date: Fri, 13 Nov 2020 08:49:12 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning To: Adrian Ratiu Cc: Linux ARM , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , Russell King , Arvind Sankar , kernel@collabora.com, clang-built-linux , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 12 Nov 2020 at 22:23, Adrian Ratiu wrote: > > From: Nathan Chancellor > > Drop warning because kernel now requires GCC >= v4.9 after > commit 6ec4476ac825 ("Raise gcc version requirement to 4.9"). > > Reported-by: Nick Desaulniers > Signed-off-by: Nathan Chancellor > Signed-off-by: Adrian Ratiu Again, this does not do what it says on the tin. If you want to disable the pragma for Clang, call that out in the commit log, and don't hide it under a GCC version change. Without the pragma, the generated code is the same as the generic code, so it makes no sense to build xor-neon.ko at all, right? > --- > arch/arm/lib/xor-neon.c | 9 +-------- > 1 file changed, 1 insertion(+), 8 deletions(-) > > diff --git a/arch/arm/lib/xor-neon.c b/arch/arm/lib/xor-neon.c > index b99dd8e1c93f..e1e76186ec23 100644 > --- a/arch/arm/lib/xor-neon.c > +++ b/arch/arm/lib/xor-neon.c > @@ -19,15 +19,8 @@ MODULE_LICENSE("GPL"); > * -ftree-vectorize) to attempt to exploit implicit parallelism and emit > * NEON instructions. > */ > -#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6) > +#ifdef CONFIG_CC_IS_GCC > #pragma GCC optimize "tree-vectorize" > -#else > -/* > - * While older versions of GCC do not generate incorrect code, they fail to > - * recognize the parallel nature of these functions, and emit plain ARM code, > - * which is known to be slower than the optimized ARM code in asm-arm/xor.h. > - */ > -#warning This code requires at least version 4.6 of GCC > #endif > > #pragma GCC diagnostic ignored "-Wunused-variable" > -- > 2.29.2 >