Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1320315pxb; Fri, 6 Nov 2020 06:49:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJxtoJnWagiifoKFd1BJVBbkbz41B38OH8mHBugb0geU7PL20kFXMsG0qMLTapWhBEbHSFaq X-Received: by 2002:a17:906:c298:: with SMTP id r24mr2392043ejz.76.1604674185182; Fri, 06 Nov 2020 06:49:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604674185; cv=none; d=google.com; s=arc-20160816; b=0gPOi8poiKewMzsF8SaF205tU+9+bPMTq7Qse7/wdJh5NSaPJuWMEI42tE56SoFO3k z1vU4tIsB+c7Htzn2cjb7PuqVx7wk29lnQxPE+cWUdmPSy5/eVaRvY+wB7VceyXU4CYw N/fRaQW4x6A5pL+MwdnPYX4XyDALl1RXg1oGPUlmE31BPWKFzL+XUsbBzmJXdjmZ9F91 n9TPZOlXp5IYdgU2iY+QviC3IUKxuuvLgZEx2ljVR0LaPBIK1FA30HY1sF5/t9YARPvN eI4aR6k8c5iV83NG2SRCRDHJy6OeOfgsHoNbaauWs1jO0L/B8M4tYjfyOASgA/taxtoB wnxg== 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=T4UF/Tn3QUyjnce2nYJObPLYUOd6aRQMgX3UVgglJLU=; b=ut1qJOjDKjzdPWz+Nd81Ev/F/Pek7S6V5WiHTZhxbFH2G1pCRAuBCnXTngbd2hzlsO A+dU0eJXhK918lQrh/QrXORdxnKdtSYFGcJNUxi/FAPBWdttcWPb6Z18HtAztBCc4SdC GrY2qmDCJIM91X8NUAZxTEkla2Aiy8WvC4ciYrD6EtE0Np+FYwh6upmdBQhLcSttLkvd MDqS8H+2kXrjUsrGhx78qnz2IMbkqjSNtjuE357srQ3PugIvsRzT/71peX0KJ77XCBkp cH3Pvk64TpkTA/Hl6jXJTDC1mP0aRrdP6jcsVFW5f7IDUS/g29P41jRLsqHXa4d1lKdb Zk3w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=seymZ1Zt; 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 a10si1050901eda.423.2020.11.06.06.49.22; Fri, 06 Nov 2020 06:49:45 -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=seymZ1Zt; 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 S1727291AbgKFOq4 (ORCPT + 99 others); Fri, 6 Nov 2020 09:46:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:40402 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbgKFOqz (ORCPT ); Fri, 6 Nov 2020 09:46:55 -0500 Received: from mail-wm1-f52.google.com (mail-wm1-f52.google.com [209.85.128.52]) (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 BB8622151B for ; Fri, 6 Nov 2020 14:46:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604674015; bh=XLMTTC2awluKxedLZISCKHbkm9xxvmnFXJZX4qOXmO4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=seymZ1Zt/wxhBysHJmHQcL/EDAIeaqe9y5cWypfEtdYsNSDNXDWce+jI47J4DW+gB R7tqfEB3WfJxNr7kQiIGTRjAE+LC0/ETMUYNhfvmnhFY0bZR3KZ0HXrhuxe+AogWxN IBzYldfjPaYMQFKYP7kPCKW/+e4TVz6kTGXqX7KM= Received: by mail-wm1-f52.google.com with SMTP id h62so1567711wme.3 for ; Fri, 06 Nov 2020 06:46:54 -0800 (PST) X-Gm-Message-State: AOAM5338jCMDNVl2yfl5qeqkViio90MhWBnBnD2uDngxMvBY4F5Sxlqs qqPuCoeLSaW59T371VoJMA3UgEUGxAwAY8r6v1U= X-Received: by 2002:a05:600c:256:: with SMTP id 22mr2845332wmj.120.1604674013090; Fri, 06 Nov 2020 06:46:53 -0800 (PST) MIME-Version: 1.0 References: <20201106051436.2384842-1-adrian.ratiu@collabora.com> <20201106051436.2384842-2-adrian.ratiu@collabora.com> In-Reply-To: <20201106051436.2384842-2-adrian.ratiu@collabora.com> From: Arnd Bergmann Date: Fri, 6 Nov 2020 15:46:36 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning To: Adrian Ratiu Cc: Linux ARM , Nathan Chancellor , Nick Desaulniers , Arnd Bergmann , clang-built-linux , Russell King , "linux-kernel@vger.kernel.org" , Collabora kernel ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 6, 2020 at 6:14 AM 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 > --- > 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 I think we still need the #else path, otherwise we don't warn about clang being broken here. If it is intentional that we now silently build this code with clang without it working as intended, that should be mentioned in the changelog. Arnd