Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp4351486rwb; Mon, 31 Jul 2023 05:47:55 -0700 (PDT) X-Google-Smtp-Source: APBJJlHs18hX7xUy++AtY+s15oMEbywSBPIJ4e9MyT5F0hv/4JZnp9IgmM7wvbpkCGBXtQvWSUSw X-Received: by 2002:a2e:98c2:0:b0:2b6:9ed0:46f4 with SMTP id s2-20020a2e98c2000000b002b69ed046f4mr5957964ljj.23.1690807675249; Mon, 31 Jul 2023 05:47:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690807675; cv=none; d=google.com; s=arc-20160816; b=ppJhnnqiSYQ529PIR8JiPOfi1pdwukdH2qlFTIj0wM/sv/O0tXsZMq2mI5XixaDpkf ywm48uXegR5J2yruv9l6OIpZGF7bGh6dTcyk93q4aoqGvz1O1nzaQLW4qK643dwBRIqE RQmf1Ux39kfv5fM2cY+59Yn00PmCKCFUn2fb9YxQEnfV8oBCyLVecqcrck2DArP6+EKb B5qM+0gnZPVeFP941m44SdqAWAmX4bo8vclNE7FQGtFDOy+eJ0Kdm+F+j3XUHO463K1m 7o3vRZoSjAuoqCxLMDBKR2sPRKq2TbSNGzQiucMsjOp00Wgi1bJLJ7bNSuESg+L9egod 2Bgg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hIQicxPvnkzo8ZaiTPrnKmCUYQAKltP7pVr6B/YTkvs=; fh=Qv5hPqadHX34I6jmINVWg1spmBJKMeato09X6JJ3U2Q=; b=AoLePWGT7LH6brtRYJXUl8AlwaIn/BdSypNDO/DxLphMfw65WLSzUGPWovj+QYhTyK 2CCXEWqafqp0EcO5BAyUPOsa1zDUCaPMrwuV6wZM6Z5xA59fqHrP3VIg3jG6N9GIpRyx UmyfkbfDuJr76RZKZ/AgogLLtFVUOrzXOgzyjuAOX+gWp92yxn7k3/Tv5z/PUlPIG2SD sJNbSCUv0SmemveVFpkmLKaCGUVCWLoqXLVujkhFmQC9ThCNyrwtD6j3OfxNs1tPJfXl EyjPJsCSg0/bYt2BvQz9GVbZbVXGvltGq1GAQ5MafqCIQzXPqYICBwaz4mJ0bhNS6mwS AxoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xen0n.name header.s=mail header.b=CkjBneP7; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kk9-20020a170907766900b0099367350a8asi6653787ejc.899.2023.07.31.05.47.30; Mon, 31 Jul 2023 05:47: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=@xen0n.name header.s=mail header.b=CkjBneP7; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229863AbjGaKuH (ORCPT + 99 others); Mon, 31 Jul 2023 06:50:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40196 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbjGaKto (ORCPT ); Mon, 31 Jul 2023 06:49:44 -0400 Received: from mailbox.box.xen0n.name (mail.xen0n.name [115.28.160.31]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7114C1FD0; Mon, 31 Jul 2023 03:49:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xen0n.name; s=mail; t=1690800560; bh=Vrcj0+W95eie0atm7f7h2d141pVyQYj9rZE2KYcFCZM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=CkjBneP7eskEHDv3Pg696FP1Dy8ttxrr7xM6KKCmz40bL4sW/8VCSDP+eJ3DyZNXq oj4vFIeohtyX7C2zPy6tCjPDUZfAKKlmW29q3O7huLckR38wUri1qYpUHTjPZW2yaG uMRbv/AAbAd28/jhu4HXSFyOFC30Yq/7HlVgG/Zs= Received: from ld50.lan (unknown [101.88.28.229]) (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) by mailbox.box.xen0n.name (Postfix) with ESMTPSA id 9DEF46018C; Mon, 31 Jul 2023 18:49:20 +0800 (CST) From: WANG Xuerui To: Song Liu Cc: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org, WANG Xuerui Subject: [PATCH 2/5] raid6: guard the tables.c include of with __KERNEL__ Date: Mon, 31 Jul 2023 18:49:08 +0800 Message-Id: <20230731104911.411964-3-kernel@xen0n.name> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230731104911.411964-1-kernel@xen0n.name> References: <20230731104911.411964-1-kernel@xen0n.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: WANG Xuerui The export directives for the tables are already emitted with __KERNEL__ guards, but the include is not, causing errors when building the raid6test program. Guard this include too to fix the raid6test build. Signed-off-by: WANG Xuerui --- lib/raid6/mktables.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/raid6/mktables.c b/lib/raid6/mktables.c index f02e10fa62381..3be03793237c2 100644 --- a/lib/raid6/mktables.c +++ b/lib/raid6/mktables.c @@ -56,7 +56,9 @@ int main(int argc, char *argv[]) uint8_t v; uint8_t exptbl[256], invtbl[256]; + printf("#ifdef __KERNEL__\n"); printf("#include \n"); + printf("#endif\n"); printf("#include \n"); /* Compute multiplication table */ -- 2.40.0