Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp1344496imn; Sun, 31 Jul 2022 03:24:19 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uREYbXLVlRDJ4wIK+BoWM0X3NcUQ54HKGjYhpjUqrOFleyxdzxnizdyoMBXf20iTM+jAcb X-Received: by 2002:a05:6402:3705:b0:43a:214b:5f40 with SMTP id ek5-20020a056402370500b0043a214b5f40mr10707734edb.83.1659263059405; Sun, 31 Jul 2022 03:24:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659263059; cv=none; d=google.com; s=arc-20160816; b=TYh5XRKTfd/2vzLrgvTDZsZiwnMlsqmjP8ovgbm0HNBbV1xAF8LwLuVmEapXMpdG69 PY4OINqpbGnLmBFeYm3s74VDeHuXdUR/sAei9GbaZHfueWxEIl7iSTArytU674iRwmCv BPxK3yEbccmJMAgJPXy033nIrdraBjDtVftlfOgSReE/OroYbCUFm/4zIMYTL+/nY4uN ZSIubx8MsCr2ipbkmW6/5XGvM4p+5oTO/Q1PulXVUPazRXnIFU2j5dmBCck+raCTgwzg BbdHOSs8E/VVSQNeBJwpj7jxiwsQP1MF5xwrzfXUOq2RhKBPF1Ts5qRG72wFHd6+HWpO IuIA== 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=Zh5LAi6Uwru5OKiZA0oBGgtq8TVc/wWwH8FRva9ssC4=; b=urPmjNevBit7hnLTyQ4fza0hQFP8hZeQB9urc5LNcMvkMwxsog8Ucy21ufd/z6Jeb9 qPWU2TfO8q2UKjPQ4QhtUJ1eyc/quolnQkVpQigISsowljyeCnRUk+q20aU6hyx496RA ut2X+B+3svUsvp6tm0+3Bi1bP7U6EcBuAxI/LvriNliHelwPTzF6afR2Rs2Pm2HPBajG GXICbL2sDVECl3L4NzJ4ggjoaYhd2JCxFiOwkscC1xKT8zZWqQNGPpIwk+u4hZrSfjK5 z7b6n7tXy5j8OJhyGo8HCfc2tfEYfr/kPmHFm8hgFaIG/bXWoyZ49aEKCMhPDAr5qcwV MwXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vDz/7Ptr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wt14-20020a170906ee8e00b007303646197csi5803143ejb.596.2022.07.31.03.23.52; Sun, 31 Jul 2022 03:24:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="vDz/7Ptr"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232858AbiGaKNW (ORCPT + 99 others); Sun, 31 Jul 2022 06:13:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231267AbiGaKNU (ORCPT ); Sun, 31 Jul 2022 06:13:20 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD5EFE018 for ; Sun, 31 Jul 2022 03:13:19 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 8ED22B80A27 for ; Sun, 31 Jul 2022 10:13:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id CB85EC433C1; Sun, 31 Jul 2022 10:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659262397; bh=l1KcgsyDNOlbE9gZMQjdsaDZuWLLdpPFaAzH+3qqmhE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=vDz/7PtrR9YpZzsEM75UVFsCsdhLffknxIjX1sjuGSMlM+yhFj6GArpfkDewN0dFD tCgscT5N/MZ2Pr1RDwkZdCkmn2W9snudd2KDGG7wWSjGpYA3FPi/UJ2uQPCcIf5UoV JD/n67t3X8x0Z4VqAVr2T8dlkpGT9STHWtYdzYTs= Date: Sun, 31 Jul 2022 12:13:14 +0200 From: Greg Kroah-Hartman To: "Jason A. Donenfeld" Cc: Arnd Bergmann , Ard Biesheuvel , kernel test robot , "Justin M. Forbes" , clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , "Jason A. Donenfeld" Subject: Re: [linux-stable-rc:linux-5.15.y 6874/8723] arch/arm/lib/xor-neon.c:30:2: warning: This code requires at least version 4.6 of GCC Message-ID: References: <202207250449.BYMZbIA2-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Jul 31, 2022 at 01:15:59AM +0200, Jason A. Donenfeld wrote: > On Sat, Jul 30, 2022 at 04:33:28PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Jul 25, 2022 at 04:35:38PM +0200, Arnd Bergmann wrote: > > > On Mon, Jul 25, 2022 at 2:55 PM Arnd Bergmann wrote: > > > > > > > The other easy workaround would be to just turn off the xor-neon code > > > > when building with clang, e.g. using this Makefile hack: > > > > > > > > diff --git a/arch/arm/lib/Makefile b/arch/arm/lib/Makefile > > > > index 6d2ba454f25b..8e4fe6421dd2 100644 > > > > --- a/arch/arm/lib/Makefile > > > > +++ b/arch/arm/lib/Makefile > > > > @@ -43,8 +43,10 @@ endif > > > > $(obj)/csumpartialcopy.o: $(obj)/csumpartialcopygeneric.S > > > > $(obj)/csumpartialcopyuser.o: $(obj)/csumpartialcopygeneric.S > > > > > > > > +ifdef CONFIG_CC_IS_CLANG > > > > ifeq ($(CONFIG_KERNEL_MODE_NEON),y) > > > > NEON_FLAGS := -march=armv7-a -mfloat-abi=softfp -mfpu=neon > > > > CFLAGS_xor-neon.o += $(NEON_FLAGS) > > > > obj-$(CONFIG_XOR_BLOCKS) += xor-neon.o > > > > endif > > > > +endif > > > > > > Nevermind, this does not actually work. Just turning off the warning > > > is probably best then, as actually disabling this code would still > > > be invasive not do much beyond saving a little bit of kernel .text size. > > > > Ok, if it triggers again, and I get annoyed, I'll write a patch, > > otherwise I'll just leave it alone unless someone else wants to send it > > to me... > > The patch is trivial, if your idea is just to remove the #warning, > right? Might as well just do it now and get it over with. Fine, I was being lazy :) Now sent out: https://lore.kernel.org/all/20220731100551.3679874-1-gregkh@linuxfoundation.org/