Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp1403522rwi; Wed, 19 Oct 2022 10:08:24 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Qdyq0felt9zuvtfCuTNW4q41O4EpKCVCc+FY9022Xq0Vp0Uv6pEKOG7L0itM2djywAgvF X-Received: by 2002:a17:902:e841:b0:180:49a2:8e6c with SMTP id t1-20020a170902e84100b0018049a28e6cmr9376137plg.143.1666199293814; Wed, 19 Oct 2022 10:08:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666199293; cv=none; d=google.com; s=arc-20160816; b=nbEXTsd+nQP0P0WUnLvoTFMwzQGfOm5T06kjwnlqvX7Mu/NbJeJ+CPsOprkj6cPgWV ACkc0qYSjfRNCydl0NnHH8oA1CwR5RX41UMlu+8iQyRXmFVJODhb+kpGsj9JMsDYIUlb UvGohaBhWmQB4z0a8Ns2eahDU8M7oxZcvGW52RFtTsj2K80jdme0UNqoNCPj1CwKzX1Y QhRgP+rehqf5axVj1/VNUos69j312oM2/aQJ+HL+lOBGBBihhmoMP+v0JgIketMK5K/d +x4gVwOUcAJllmSHh5fLQYSvMo9pLkE4qUVNkscthIEUmL+DgGVXow2AVoamRuTwJH83 IujA== 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=gt50weJOBZgR96WCczST26a6A3xCRPmFxxph7oc/EKg=; b=zgiyhNHYNVhxUQ1pIilxji255AAOWiM/5sh0/LPD2o0HvheJx0Bi2228f1ZODtFtKh z+H9Ho2HnShQ6in0CkxBbqyXdIke+3Tduvibh4Ky/OnnLRcs2SbBeoaYu6yZ9BlinFGg Bl10WTlyxd+OJ5OAFSRUNaWZSozuQPc8UgeiK4G8SOSMXGxBTA+i7hvyLFW+wc0RNS/a CMHlVLVSUuNBEdhdUw6vmcHGiIQI3cK8KEgfDuQxSjtfK1t0H+Pz5Ou9llJByvRlESi4 yxjoXT9YTjyZk2LfBSoowB7lPglMM1THq1krd22skPe4V2joA63E9eSZSU9GHXJR5ru7 IBcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@aruba.it header.s=a1 header.b="jTRQ/WLv"; 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 p12-20020a170902ebcc00b0017f57787a5dsi18332846plg.223.2022.10.19.10.08.01; Wed, 19 Oct 2022 10:08:13 -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=@aruba.it header.s=a1 header.b="jTRQ/WLv"; 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 S231790AbiJSQG1 (ORCPT + 99 others); Wed, 19 Oct 2022 12:06:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231361AbiJSQFv (ORCPT ); Wed, 19 Oct 2022 12:05:51 -0400 Received: from smtpdh19-2.aruba.it (smtpdh19-2.aruba.it [62.149.155.149]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 495CBC2CA1 for ; Wed, 19 Oct 2022 09:04:40 -0700 (PDT) Received: from localhost.localdomain ([146.241.87.206]) by Aruba Outgoing Smtp with ESMTPSA id lBYBoox5FSmRKlBYCoDstr; Wed, 19 Oct 2022 18:04:13 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1666195453; bh=GOiiI3+8vXjlQ7VXBWeCNN1srDCedk1v4RecNZAv7pg=; h=From:To:Subject:Date:MIME-Version; b=jTRQ/WLvghaA9QEMvIRdKd+hiS4Qa6RO6qs8uiyvxaGqYZxRtJkUZex89uzrTdBK5 hMIMwjMtj6C0TMIgeOFvx0oB8nE5OgaiOfqW/8vmtMiOIue9sf5E6aczbWtkiYPLfP gfG7CmUVm/3pJqwsGxjeQMr3Wla7HXTPqRAMV1E7WbKGIZVzDhtqj0tEK4NrbuSljr F5+rHChwbe6lfsDoZCFwawO3Wbcj2ExS7b5QY2iQAvZXw5KBM6Se0Rl2bGfzRmNTk1 5lrpiSgdAk0ITe6oDBZhdb3qNqj8JG9CPaRYX7U5MYHrbGFuJSPKTa4rRYN1D2QgLm U6YGyGJACGTIA== From: Giulio Benetti To: linux-raid@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Song Liu , =?UTF-8?q?Dirk=20M=C3=BCller?= , Paul Menzel , Giulio Benetti , Christoph Hellwig Subject: [PATCH] lib/raid6: drop RAID6_USE_EMPTY_ZERO_PAGE Date: Wed, 19 Oct 2022 18:04:07 +0200 Message-Id: <20221019160407.7550-1-giulio.benetti@benettiengineering.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfAG43ZSehpx2rzMtQ4WywAEY4w2w7pXjnboijBNvBg2L2b5faGjDfm7J/rWud9TgVdySsulvWquaGuvW9ztb2o5BitM3DsE/uaGn+77CpdMIhUgLmgbm wG878r2326b18l0Ht3VRVev/Tod4w+s3XZhcx8Sb6ChaoD5KVTaKzTO635Jz2xFiGXDMwdTAyB3zcYrDs5OZ9nVMYmfA5R8abLEE0NUMvzzKWLvy3luA/gLu 1NqtznKBoeA0lDf50Vd/8Fx6aZdOs+g9EzwTMW6HFUr92PwAuMrSryqt8aiguWvufsVo9+nfxyqJsE6KxLcfT244CWi3ewNHIPfNF14iLTjbb5JiRZ09PRtX NXiInngJqqehS9OizZGFF1nXpSy8xSvD6GqTfU9JzsDdZPttRGxYjiBsHz6cMR5S8iFYEtp4+bhneaz0I2s0zZ4J4Wkaow== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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 RAID6_USE_EMPTY_ZERO_PAGE is unused and hardcoded to 0, so let's drop it. Signed-off-by: Giulio Benetti --- include/linux/raid/pq.h | 8 -------- lib/raid6/algos.c | 2 -- 2 files changed, 10 deletions(-) diff --git a/include/linux/raid/pq.h b/include/linux/raid/pq.h index d6e5a1feb947..f29aaaf2eb21 100644 --- a/include/linux/raid/pq.h +++ b/include/linux/raid/pq.h @@ -10,17 +10,9 @@ #ifdef __KERNEL__ -/* Set to 1 to use kernel-wide empty_zero_page */ -#define RAID6_USE_EMPTY_ZERO_PAGE 0 #include -/* We need a pre-zeroed page... if we don't want to use the kernel-provided - one define it here */ -#if RAID6_USE_EMPTY_ZERO_PAGE -# define raid6_empty_zero_page empty_zero_page -#else extern const char raid6_empty_zero_page[PAGE_SIZE]; -#endif #else /* ! __KERNEL__ */ /* Used for testing in user space */ diff --git a/lib/raid6/algos.c b/lib/raid6/algos.c index 39b74221f4a7..a22a05c9af8a 100644 --- a/lib/raid6/algos.c +++ b/lib/raid6/algos.c @@ -18,12 +18,10 @@ #else #include #include -#if !RAID6_USE_EMPTY_ZERO_PAGE /* In .bss so it's zeroed */ const char raid6_empty_zero_page[PAGE_SIZE] __attribute__((aligned(256))); EXPORT_SYMBOL(raid6_empty_zero_page); #endif -#endif struct raid6_calls raid6_call; EXPORT_SYMBOL_GPL(raid6_call); -- 2.34.1