Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp919255imn; Sat, 30 Jul 2022 08:02:17 -0700 (PDT) X-Google-Smtp-Source: AA6agR5Bag7QZiQOUZVMVcZZQZneABKJtJ0ep56tX85abBsyYZH/3/2GlD4o64eodkOVkAUfmPid X-Received: by 2002:a17:90b:3e82:b0:1f2:46d9:fc09 with SMTP id rj2-20020a17090b3e8200b001f246d9fc09mr10333407pjb.141.1659193337202; Sat, 30 Jul 2022 08:02:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659193337; cv=none; d=google.com; s=arc-20160816; b=axbFKYm+hy5lh2AJbRFRLxV2pPaesmAG83fjVTFVVXzYYTrp/GOHASxD03tEfk9gRD bd/QOW6/SgtWNAfapNPmORvmIqLdYRm990JpVoDMUZfWuQhyWiN4jhYiQ/aws6Vxh+Dd f69a2wSDBN1BcsaMK9SX5Ysoo9DbQNYGdT8+PeEtjeA3j3EJm4JIANNC1d1xD6N9AmJn ubeN65unGzX3Z74SurUq3NzekdwaPRYirNCpuR/OFwJ8Gp5nrvTiw6jnu1e/jrR2tqK5 1FgQS9245BtRWFwvLGwYywI5UFyFNrK5GefW2FqYp461Ns92ARkGN5oPlUg/IHlDVkTY ESTg== 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=xQxR/QWUvhXuKCmcS6KTkFv+xvD9JvV4Jt0R7EcHjm4=; b=K3mnJsTHaetY7IjbnL5z6Of77wt3uJ4hwvmGYRl6t6hQb5ZQl2rfj+A7ndNYgcAnPD c0Jd8YvdQT6G+L/paHH9FJMVB2kDOiHo4NpWqnTyUYR3D+ZXLquTIZB9o7alqyvqW0sS QuLWG4pi5UExod4M4lVvsfOz5R3x71GyOqPscdIYK3egbt4bNRWc1b0ryPoFe5RVaev5 lfvRs2fonCCpr6lpgiUFPmr52xtSm5nhBwWoWiKuxqjGyJ0TcUBL6ndyYI2luWXe79+k VskbDCQjF82Rr9cTbc2srEiHkmRXI/IDTJqmFM6ovWSaMP1MSI3ossYVvCf10zdKpWgf g23A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yjEJhsfu; 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 a7-20020a056a000c8700b005227ed4e0fdsi6942437pfv.134.2022.07.30.08.01.59; Sat, 30 Jul 2022 08:02:17 -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=yjEJhsfu; 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 S234755AbiG3Odk (ORCPT + 99 others); Sat, 30 Jul 2022 10:33:40 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231386AbiG3Odi (ORCPT ); Sat, 30 Jul 2022 10:33:38 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F3BA15FFE for ; Sat, 30 Jul 2022 07:33:34 -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 65AF4B800C1 for ; Sat, 30 Jul 2022 14:33:32 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A4000C433D6; Sat, 30 Jul 2022 14:33:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1659191611; bh=qP+ZmXCmCszG5bZ9pMTRnwel5mdgn0rwYD/fDV9DBII=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=yjEJhsfugBLmSGV1zi/iolAlgSXjiPuhiUBfdAs1EPMyjJ3C0gOY+7UIGTMBRR82+ 0YY8FHl4PP1hC9Pfw4ODO+wCR4qV7IhBbhCeTQnE0pRjkvf/W7cd6prFP50XFm+0FT c/xvkIYoa5qYaL/DrVfl5vX0oYWp3p35ae4yEwCU= Date: Sat, 30 Jul 2022 16:33:28 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Ard Biesheuvel , "Jason A. Donenfeld" , 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 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... thanks, greg k-h