Received: by 2002:a05:6830:16d2:b0:61c:ac69:ca1b with SMTP id l18csp2121463otr; Mon, 25 Jul 2022 07:50:55 -0700 (PDT) X-Google-Smtp-Source: AGRyM1v33fFXrCE3S0+vgFD9K4IgmhoNVlItSbnnZIP35ZH4hqM3+h9cMO5uASFtrhrKEsbbKqcD X-Received: by 2002:a05:6402:3512:b0:43c:1979:cc2c with SMTP id b18-20020a056402351200b0043c1979cc2cmr3204091edd.372.1658760655305; Mon, 25 Jul 2022 07:50:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658760655; cv=none; d=google.com; s=arc-20160816; b=PkBqBgb26PUPC2I22fTckyNyPRCKCiJsxhzYy5qjbVQIqLcjWlHC2TGc3271tTSMe4 NiK3v1fMSO3ZeaxUjkVPogaClXjwdDPhIXtJGdo0/1ouj53OIjRrG9TK+t/WoiMaw7jG piBi8IVrG/cdvdqkYvTdiNb2AXoAh2wUSwUrceSDBDw0GuShJnG1zLlcUT1Rz6YqNazb JVrNOvi/LASFkQSHMN+Qgfb+7hqtQAIU9maCx6iHCcN1Dt7MIIiu/CR785mmlAXmCSe2 YRJy3fVrxuVpw3WzRAqWMoNqwz9JFGE8qlY8tX45l82nOeKjCoqZRHDDqrJdOqt7AlEa L0Bg== 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=XMIYmbe3xPVSprBbqH8e756MEJitdTDyAYfDxqxlNiY=; b=ZZ3kVig96h+tXFme9Kw/XAU2SXwT7V/94Zpk3dXTNOXsqF6cYQhxUU3Wl/hQKjMEUg acGvYZBqxJnKgN53ofUuoNIAzoySvgiBrX23vs8h9kHk/JYzPfdjtLfrvcFVqnA23h1/ PeEVQHn4lIigbXQWbtZ5guRbUmpylMlBkf83W6OrVJibgZYJyTBIKLB1e/PeLWtbNC5N ekZRj+28I1WrEMlKz/db7qeG1yGWRDo9FjqI/KsnmGe8cTOQgSXkZcHdaRDrbB9MhZYI xZ5DD3K++MPz85GisnU4D7KRAJGNJe5IIp4eeu1Exw4GDro8/5GvMOWEDlT8irw3YAo8 rHEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=btmw0M+i; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr16-20020a170906d55000b0072f664f35dfsi13911627ejc.868.2022.07.25.07.50.30; Mon, 25 Jul 2022 07:50:55 -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=@kernel.org header.s=k20201202 header.b=btmw0M+i; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235679AbiGYOgB (ORCPT + 99 others); Mon, 25 Jul 2022 10:36:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34636 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235198AbiGYOgA (ORCPT ); Mon, 25 Jul 2022 10:36:00 -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 9CC2013E1D for ; Mon, 25 Jul 2022 07:35:59 -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 5A5DAB80EC9 for ; Mon, 25 Jul 2022 14:35:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 08D6EC341C6 for ; Mon, 25 Jul 2022 14:35:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1658759757; bh=8YAdK42qqbqAY64DK1NyJcyaeYoywJhEGa74ocjFyLA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=btmw0M+imuPsrJudphHVgl7R5KvTrbEm28wzpuVk3F0cQIhNNUjN+1JOZ9Yv+67lT WVWiBI93japOYL4GqvbJDuXkGYeIg2KHNI3XfaXad/6KO/4HAK36gg8JVV7Fifez/t J/fEk/EiOBun08qB8Hj6xhqxUR/YwepMSI11is4AOGsyXDrrwlchLKQZsFH4co43a5 53cYs59EmilqGnMzfcFuQZ0FWOBeK+9oDe4LjEh/ENb6+eRQJ7m7JBaPJXHy91fQoH Vz+94V9jAmIaJg2aBuk6FEN/NY4Dm5h5YHa0VvFjGuz01vU2S+tY3rG64Afl16hqfN TRcUHMazQR0aQ== Received: by mail-ed1-f49.google.com with SMTP id z22so14209181edd.6 for ; Mon, 25 Jul 2022 07:35:56 -0700 (PDT) X-Gm-Message-State: AJIora8oAkwerls15vcX3Z6o4rzCz2ahzK3h3PlSgBqpJekwkPYLkHlI ksuDAuA3MX5X/3cS/cEOecZeYxxGrdC4EfQmR2k= X-Received: by 2002:a05:6402:1003:b0:43a:75d8:a0e with SMTP id c3-20020a056402100300b0043a75d80a0emr13537599edu.303.1658759755306; Mon, 25 Jul 2022 07:35:55 -0700 (PDT) MIME-Version: 1.0 References: <202207250449.BYMZbIA2-lkp@intel.com> In-Reply-To: From: Arnd Bergmann Date: Mon, 25 Jul 2022 16:35:38 +0200 X-Gmail-Original-Message-ID: Message-ID: 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 To: Ard Biesheuvel Cc: Greg Kroah-Hartman , "Jason A. Donenfeld" , kernel test robot , "Justin M. Forbes" , clang-built-linux , kbuild-all@lists.01.org, Linux Kernel Mailing List , "Jason A. Donenfeld" Content-Type: text/plain; charset="UTF-8" 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 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. Arnd