Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1459668pxb; Fri, 6 Nov 2020 10:07:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxyJASo9PzEu4BbZAFwbKXwxY/kFRM1lsv11/s1MZfnj4JAh5ZtID+nHDzSeyy8zB9SpKv X-Received: by 2002:a17:907:2706:: with SMTP id w6mr3185556ejk.107.1604686044395; Fri, 06 Nov 2020 10:07:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604686044; cv=none; d=google.com; s=arc-20160816; b=ozYyL0q9Y4YujvbFDdXWXXbI1AGnHhuUMd/nlKddw58bUdlBb+bl6dzeoRLFvI47j3 zl046z1qfu0thZ/lBvRUTCoXlWnjnMGhEVGKkLo/H+RDduTuFRVv5oPgZmcj8gzlN0Iv W8v+ET71Lk/MHChHm2Ra2zgusi9GX66yzfDy4wXw8nvxOyMh2W9m+gAKjbugbfNusuVz z7FB8uW7sfLuyuEEv5LW5bFD2oPD7Wa595J2dWwsICb3OXWyGDk/QPYJRgH3B6DMYXp8 XiTW7SEdR0Wo7KK/NLDkxJWwkW60OvHf312O0e6+wOU/bYlw2ASyysCgKNxOIFzntro0 IEhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=p1CcGa5j+LtJL5zURX6fDA5w3O8+Vz5UmqHSHkyTHyI=; b=lf71FcDftFwxNJ3NR1TFcwWCCeDHdOc+K3j/VXEQgXEGARfR2X/zGpFb5kVrEvXsG4 4GoBdlIKITsi/usYsAil+9v/9ZVGgISeiRM+AvwKRVDm3cS1y5NN72XTdC5n0DfOaNsE 8hTj/4DcZ6Oe1uezfeK0+LJSiK6jFMiFCeB1U/B7epFTbT6gtmzKZLvwHiI/lBtlGrGK Fs/Tbkdv+qQlRUVTpGpgwDbsjcuMJi3+TDUtQAW+Kb/NtMwcz5Xz0VVubkLa/Ht2c2LE eaY4/L8fQQPOsuovmPoBVy6VRWPHBGMjLxiVf9+V0Bx87sKZZXHtarHgeQmAB4Mrfq6a r12g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=M24HNHlp; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ec12si945596ejb.727.2020.11.06.10.07.00; Fri, 06 Nov 2020 10:07: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=@gmail.com header.s=20161025 header.b=M24HNHlp; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727708AbgKFSDO (ORCPT + 99 others); Fri, 6 Nov 2020 13:03:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727069AbgKFSDO (ORCPT ); Fri, 6 Nov 2020 13:03:14 -0500 Received: from mail-qt1-x841.google.com (mail-qt1-x841.google.com [IPv6:2607:f8b0:4864:20::841]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 752B9C0613CF for ; Fri, 6 Nov 2020 10:03:14 -0800 (PST) Received: by mail-qt1-x841.google.com with SMTP id h12so1363909qtc.9 for ; Fri, 06 Nov 2020 10:03:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=p1CcGa5j+LtJL5zURX6fDA5w3O8+Vz5UmqHSHkyTHyI=; b=M24HNHlp2Av/ocP/HGwx3Kfvpq/m2n7nwu3HWio44Ma0zLCwSG6KK+jBNEjW2t/mVc 2dV1A4AFVHInwbI8eMn6R6RRtsPKyWNYfCrhRhF11AixmfINzps6OPhE4oHI8EQnk/yh d/ei6kv7tzW/15vtjRB8bMBp2+VOjdO5JHzcUsyB8LkmzR8/vVizjzUfn+P34qnbsndo 1pX6jGKVxX/8WuJv/PiD5dUFlR6JJgiF0KFnMLtqEOJzWxVDVWHjRRRt0gNHpvU54EE1 nSwxyMX1hlW+bStOrKd2jY3KUvWtXxJV291FDH8f9MXg4kz4rZfdx/i54l9jjMMLA7Fg 4Hdw== 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; bh=p1CcGa5j+LtJL5zURX6fDA5w3O8+Vz5UmqHSHkyTHyI=; b=qtJ/+x58Xw2koYhAHgESOEyjuDC6ELk1qSZ/aapDCMl5/mIszjOB/6OCnZG//O+Wuv p5XoymYm4UMFHYXVLXBgVy0npsN6Z3YXZoww9sGRWNoLRxOYRAOvoj2n2lFHPp8cNfYr sBMcfsz3LhVDsSSoYiyhTAz8AVOh7eLXQU1F3tROLEZMZw/VgH+n7zkleWxQ6pOl4EsF bC5zvA2cutWsTyAPw7g0rddbsLBd6KVcVeeb62emnmo6J4bHaPkV+DmO9jH9J+uT3ZJj ah2y5qg1HWNBZ+gXzTo9ygaTiZkf9YcPwf78Us0f4I9OgYva0m6liQniIOMhAKiPuIXF /AqQ== X-Gm-Message-State: AOAM532ODioM2AwukvE/FMJTRXPh3vYjm1G/exVoGKhqL9lFL0M0g6hy j2bl3DAhy4QtfFF8ic8c7PI= X-Received: by 2002:ac8:705b:: with SMTP id y27mr2626562qtm.192.1604685793651; Fri, 06 Nov 2020 10:03:13 -0800 (PST) Received: from ubuntu-m3-large-x86 ([2604:1380:45f1:1d00::1]) by smtp.gmail.com with ESMTPSA id d18sm996591qka.41.2020.11.06.10.03.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Nov 2020 10:03:12 -0800 (PST) Date: Fri, 6 Nov 2020 11:03:11 -0700 From: Nathan Chancellor To: Arnd Bergmann Cc: Adrian Ratiu , Linux ARM , Nick Desaulniers , Arnd Bergmann , clang-built-linux , Russell King , "linux-kernel@vger.kernel.org" , Collabora kernel ML Subject: Re: [PATCH 1/2] arm: lib: xor-neon: remove unnecessary GCC < 4.6 warning Message-ID: <20201106180311.GC2959494@ubuntu-m3-large-x86> References: <20201106051436.2384842-1-adrian.ratiu@collabora.com> <20201106051436.2384842-2-adrian.ratiu@collabora.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Nov 06, 2020 at 03:46:36PM +0100, Arnd Bergmann wrote: > 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 Maybe patch 2/2 should come before this one? With that patch, we are not even going to build this code so this patch purely becomes a "we do not support this GCC version anymore" cleanup patch. Cheers, Nathan