Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp778248pxb; Tue, 5 Apr 2022 22:57:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEGEckzEeyfOQlxxjNTzoszWtBh1uEt/DELAxE3+yKT1rxBUCUe1SpelOOffcBFx3CmXzT X-Received: by 2002:a17:90a:bc01:b0:1ca:a5cf:5efe with SMTP id w1-20020a17090abc0100b001caa5cf5efemr8057360pjr.242.1649224648948; Tue, 05 Apr 2022 22:57:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649224648; cv=none; d=google.com; s=arc-20160816; b=C4WRFMOGWP9mbBOZpRhfL/BnK3mQ+8nw71pCG6dAyM6ZcniGIh7CQgzWKeoqVOk1Uk vD9s9v0gpG3eDTPimx+hpJagZjAjRn+Crdpp8+F/VNQEiv6m+HvQbcPS6dTAvYQAdscp mcFw+Y9DBk84ZI54ZI2Tg3DHPFrdRGUBQdHiaxIP6/l/UJ3rH7Z9fhuokx/7G/3bANfI I5EVu6Evanzmydx9411cqhpZ4C2Qeni3Ev0LLE5BfjDymfEoqloiBSOTu1vNJDyMHNlo vfyYSWSXu/dqV0qmryX/dlrq8SIe/37A3cj8Llv2cjgE7ginFjzirguVpoPLYs2oy69i t1ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6w1eizfuQBFsk9xHtpWzJPN3Ms69TjrM1sL+k8GjCKs=; b=BNFx/d5XXVvUJygZkE4wVprQBiZc2+vmaoM2FsgqC13L/rM0viZd2mH5hu/K/q9eA6 selOGeiZLQqKUMYjxcW3HeFFc8IgB2ucyO82Yfqbuq38JHaVHXf/05poyIc91OZAJ3MT bUyRBMQZvv1m2Xk030JLLePXSVt7pbS9mG/srmWSWOK6hz7o8Lk/DLp2MYBl65fIm4t8 5vHVsj0TpWmjDaNAwrjtlybl0dvq4Jul1trVnHf5R+Q69AiZLnR/y2YRhpgAtDiHScQD WZzsDR3Lwf2FclMrE57kdxdShNFAuX5qjpYA9C+0Nnrhr/EEL1W5+xZd+IcRMxG3anrA mwFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mPFrbUB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id t19-20020a170902b21300b0015427685582si13881244plr.246.2022.04.05.22.57.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 22:57:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=mPFrbUB4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 905471C42FA; Tue, 5 Apr 2022 22:22:28 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1837852AbiDFAsc (ORCPT + 99 others); Tue, 5 Apr 2022 20:48:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58504 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351481AbiDEKCe (ORCPT ); Tue, 5 Apr 2022 06:02:34 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9FEFB6E7BD; Tue, 5 Apr 2022 02:51:49 -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 36A2EB81B75; Tue, 5 Apr 2022 09:51:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A8B6C385A1; Tue, 5 Apr 2022 09:51:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649152307; bh=A/hAMMRh3XJNdD9x1AAtbacK618VtXEYBp3Ix1ZXMfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=mPFrbUB4ZnoeWyLXUif4lhTyJRhEYQSCNvwRF/EAT24fk67O/ZQDiTSH84jWU0b0f 1lNnIURd9XTOBZ/Rh+D0wRINn5nlNWtXBb00dBVGOs0psauPKlVB17XjkQOhc4rBE5 2gfz4FbWJDRsh8a7p7E7E5wEEqivWHaO0ldzfidM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Matt Brown , Paul Menzel , Song Liu , Sasha Levin Subject: [PATCH 5.15 702/913] lib/raid6/test/Makefile: Use $(pound) instead of \# for Make 4.3 Date: Tue, 5 Apr 2022 09:29:24 +0200 Message-Id: <20220405070400.876862523@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Paul Menzel [ Upstream commit 633174a7046ec3b4572bec24ef98e6ee89bce14b ] Buidling raid6test on Ubuntu 21.10 (ppc64le) with GNU Make 4.3 shows the errors below: $ cd lib/raid6/test/ $ make :1:1: error: stray ‘\’ in program :1:2: error: stray ‘#’ in program :1:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ \ before ‘<’ token [...] The errors come from the HAS_ALTIVEC test, which fails, and the POWER optimized versions are not built. That’s also reason nobody noticed on the other architectures. GNU Make 4.3 does not remove the backslash anymore. From the 4.3 release announcment: > * WARNING: Backward-incompatibility! > Number signs (#) appearing inside a macro reference or function invocation > no longer introduce comments and should not be escaped with backslashes: > thus a call such as: > foo := $(shell echo '#') > is legal. Previously the number sign needed to be escaped, for example: > foo := $(shell echo '\#') > Now this latter will resolve to "\#". If you want to write makefiles > portable to both versions, assign the number sign to a variable: > H := \# > foo := $(shell echo '$H') > This was claimed to be fixed in 3.81, but wasn't, for some reason. > To detect this change search for 'nocomment' in the .FEATURES variable. So, do the same as commit 9564a8cf422d ("Kbuild: fix # escaping in .cmd files for future Make") and commit 929bef467771 ("bpf: Use $(pound) instead of \# in Makefiles") and define and use a $(pound) variable. Reference for the change in make: https://git.savannah.gnu.org/cgit/make.git/commit/?id=c6966b323811c37acedff05b57 Cc: Matt Brown Signed-off-by: Paul Menzel Signed-off-by: Song Liu Signed-off-by: Sasha Levin --- lib/raid6/test/Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/raid6/test/Makefile b/lib/raid6/test/Makefile index a4c7cd74cff5..4fb7700a741b 100644 --- a/lib/raid6/test/Makefile +++ b/lib/raid6/test/Makefile @@ -4,6 +4,8 @@ # from userspace. # +pound := \# + CC = gcc OPTFLAGS = -O2 # Adjust as desired CFLAGS = -I.. -I ../../../include -g $(OPTFLAGS) @@ -42,7 +44,7 @@ else ifeq ($(HAS_NEON),yes) OBJS += neon.o neon1.o neon2.o neon4.o neon8.o recov_neon.o recov_neon_inner.o CFLAGS += -DCONFIG_KERNEL_MODE_NEON=1 else - HAS_ALTIVEC := $(shell printf '\#include \nvector int a;\n' |\ + HAS_ALTIVEC := $(shell printf '$(pound)include \nvector int a;\n' |\ gcc -c -x c - >/dev/null && rm ./-.o && echo yes) ifeq ($(HAS_ALTIVEC),yes) CFLAGS += -I../../../arch/powerpc/include -- 2.34.1