Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1681206pxb; Wed, 9 Feb 2022 02:03:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJyHxBf0nwDRF3fwUObxHQnYmOQNTcZaAYIXfSTaNNcghNtYL04RbV3QJsIbG6MtRovFePo1 X-Received: by 2002:a05:6a00:21c6:: with SMTP id t6mr1406443pfj.81.1644400989248; Wed, 09 Feb 2022 02:03:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644400989; cv=none; d=google.com; s=arc-20160816; b=FvgaS6R2J+MqdRCrrBfi4XrXldUyocXUBBT1Ze9amX1A+aixxN/YGqkM3bjyqcl8j/ HizWRn2sdSDyiuBcVOaQ3u+5bNqnAv8bARWyg7sevB0YP/jZUOGUNwsflsTo+5giMCZz xBg6TuxOJ/WYFVPmda96br8i7nrnb6m2RGqi561fucXmjDCwN3HjH+HC/66cCgD2bEAg pecdQp1jjcxOE9l1G38Gjgt6eLdeVKd1qPxM9GMKweG2xN5sxyHqkRImsUCTQYnT4JBf Y58Z1KkEGMbzWAokZfGtCxdDFH2MYapUI3qKvN/jUfjaINz2NkTgAuN0SiIwZLqqWIGL 7CnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:from; bh=LTpNHvODrBMfG3Vvw56004FETZLVsXMJHyev57CVU1c=; b=0uOsEWwmN34QjDImaN+TUyq3XK9UHvqsWivuMBOPsHZFjsPl/mk69G5sF6Pjq8LAhq PnSbsLjTXhe2TJgPIpmqPJcTfc2OC+BiffqXBSGfqXirpvcx3xqrwkT1i1Lnl3cEx0oD xldWAGEtpVm6va/wY5ul/qoWebh/Jt3LYawCL4EvZXWplAc08PNTNgRt2IErTNMW5Rlp lm5wwDYTweB2TjGsT6oqU9COU+3N0TaoLciQj/sn+CbeCkvSmHAFiXzkz1uMRZCu04C+ 9inpX8JqSk3voCAE21mRN2RTeZWMFcXchbn5ntDpgKDKfB5MjRgy1amxYIaE9hB6otbb pIFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a62si534503pge.872.2022.02.09.02.02.55; Wed, 09 Feb 2022 02:03:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233761AbiBHPXb (ORCPT + 99 others); Tue, 8 Feb 2022 10:23:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1380046AbiBHPXZ (ORCPT ); Tue, 8 Feb 2022 10:23:25 -0500 Received: from mx1.molgen.mpg.de (mx3.molgen.mpg.de [141.14.17.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A28BCC0612B8; Tue, 8 Feb 2022 07:23:21 -0800 (PST) Received: from localhost.localdomain (ip5f5aebc2.dynamic.kabel-deutschland.de [95.90.235.194]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pmenzel) by mx.molgen.mpg.de (Postfix) with ESMTPSA id 3486761E6478B; Tue, 8 Feb 2022 16:23:20 +0100 (CET) From: Paul Menzel Cc: Paul Menzel , Michael Ellerman , linuxppc-dev@lists.ozlabs.org, Song Liu , linux-raid@vger.kernel.org, Matt Brown , linux-kernel@vger.kernel.org Subject: [PATCH v2 2/2] lib/raid6: Include for `VPERMXOR` Date: Tue, 8 Feb 2022 16:21:50 +0100 Message-Id: <20220208152148.48534-2-pmenzel@molgen.mpg.de> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220208152148.48534-1-pmenzel@molgen.mpg.de> References: <20220208152148.48534-1-pmenzel@molgen.mpg.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Ubuntu 21.10 (ppc64le) building `raid6test` with gcc (Ubuntu 11.2.0-7ubuntu2) 11.2.0 fails with the error below. gcc -I.. -I ../../../include -g -O2 -I../../../arch/powerpc/include -DCONFIG_ALTIVEC -c -o vpermxor1.o vpermxor1.c vpermxor1.c: In function ‘raid6_vpermxor1_gen_syndrome_real’: vpermxor1.c:64:29: error: expected string literal before ‘VPERMXOR’ 64 | asm(VPERMXOR(%0,%1,%2,%3):"=v"(wq0):"v"(gf_high), "v"(gf_low), "v"(wq0)); | ^~~~~~~~ make: *** [Makefile:58: vpermxor1.o] Error 1 So, include the header `asm/ppc-opcode.h` defining this macro also when not building the Linux kernel but only this too. Cc: Matt Brown Signed-off-by: Paul Menzel --- v2: Resend lib/raid6/vpermxor.uc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/raid6/vpermxor.uc b/lib/raid6/vpermxor.uc index 10475dc423c1..1bfb127fbfe8 100644 --- a/lib/raid6/vpermxor.uc +++ b/lib/raid6/vpermxor.uc @@ -24,9 +24,9 @@ #ifdef CONFIG_ALTIVEC #include +#include #ifdef __KERNEL__ #include -#include #include #endif -- 2.34.1