From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 65453C04A68 for ; Sat, 30 Jul 2022 14:33:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234763AbiG3Odk (ORCPT ); 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: 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