From patchwork Fri May 24 09:13:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miaohe Lin X-Patchwork-Id: 13672903 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8BC3AC25B74 for ; Fri, 24 May 2024 09:16:42 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A2ED36B00A3; Fri, 24 May 2024 05:16:35 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 988C96B00A4; Fri, 24 May 2024 05:16:35 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8016F6B00A3; Fri, 24 May 2024 05:16:35 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 5B3C66B00A0 for ; Fri, 24 May 2024 05:16:35 -0400 (EDT) Received: from smtpin12.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 12EDEA09A4 for ; Fri, 24 May 2024 09:16:35 +0000 (UTC) X-FDA: 82152733950.12.3823F37 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf03.hostedemail.com (Postfix) with ESMTP id E09B020005 for ; Fri, 24 May 2024 09:16:32 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1716542193; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=7rOUJAME8DH6FXMXgre8En5Oqq1YGNnjP1BBORlLL80=; b=VLymmDA3mGNfb2GJJ8ZJcm67YvRwVbnIaZKkUr0XsOTuKCGZzAWKcfaKL7jiljNhJobVUB oGt5eGk8+KYgzf5/uI416ikDUNnzGok7Dyd3V82roNGMHkw0Cx8+L1ssQiYnp6Brl9tH4A vwBxdUe3LHSj0+OkYMgOsuCohqLqjQ8= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; dmarc=pass (policy=quarantine) header.from=huawei.com; spf=pass (imf03.hostedemail.com: domain of linmiaohe@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=linmiaohe@huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1716542193; a=rsa-sha256; cv=none; b=5L2qEYOXwT8uD0tUgeeepMT2ia/yBdPRaIQgK4FbV3VesQOqEUHTEMu2TYZoXydvVcTyK8 sYb5Hv/xSG+smf5IB/YX0Oio6u4vdjTQNXX1T3Y/1VDXIXXjuwcMAFd7vB3F6ec8to/UFx 3qAyq0QAYF7mDZ+iaPHlalnyEgPOrnc= Received: from mail.maildlp.com (unknown [172.19.163.174]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4VlzpS5W1SzwPHB; Fri, 24 May 2024 17:12:48 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id 8B0631400D1; Fri, 24 May 2024 17:16:29 +0800 (CST) Received: from huawei.com (10.173.135.154) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Fri, 24 May 2024 17:16:29 +0800 From: Miaohe Lin To: , , CC: , , , , Subject: [PATCH 07/13] mm/memory-failure: remove unneeded hwpoison_filter() variant Date: Fri, 24 May 2024 17:13:04 +0800 Message-ID: <20240524091310.1430048-8-linmiaohe@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20240524091310.1430048-1-linmiaohe@huawei.com> References: <20240524091310.1430048-1-linmiaohe@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.173.135.154] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To canpemm500002.china.huawei.com (7.192.104.244) X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: E09B020005 X-Stat-Signature: chbbrhk874t63gm4qbh6qgi7m5ysdwyy X-Rspam-User: X-HE-Tag: 1716542192-623692 X-HE-Meta: U2FsdGVkX1+OOcU9VU6aRsKCia7HUOa+Cfhn33ENwBZCgWGwcPEEs7fklsURU7lDiJD1wi9CM9zpjsZkdD8rlGjCDYRfJ/XIjzhg5NzSz5N/eNeDjh8cObyZolsiGvjLISf6RcVVUgnHDcjtDXDjOZyb7So97YRDEkfs0pyzoHdWyCh3qxgsLp2Copo0OBQthLVX5z42PQuQ1B6qrvIwPhKm2LJdaJVi3bt+Wb3pSbdBWX+dxD4ruwZTH18Qs0gvzfB24Mj2NUb+d/TNWuv5FNggG9s9sEbrdXwBK0pj4IpvK7gRzxKw6hWXcZ0bqu3WgdhZwbP+BjVTIteEXbNKhg039sOlnMwKBFZR2tPgwbQNoHKBof6i8TxhbdojZWNnnvdg18GbWGL5sGEFsruSjLHbPXab4zkbOcim8pn8ofAMnVI0bb9OC0BGSIefAmpJv5a2RSaAPXjOYvauS8fC6e4ESm9wjMNed1e75yV+8jggmz01+/+o+IKM4tqWsBrj1Y3YzNwXsL5ww0y64yxqHzofUt9dU4LcwlGioVdkzTKxihRR9KveBLE/3tv3+cnX2zaQKgbTHVezQypxlwpzwnGL/1OR5wMZLB+4NDbtaY6Bi8e8X9Ub5Ol+xD4+H0/KWjfm5voBebDlB4vg6Zdw2gb/qqjEZyB8dhF/ToMQdPhuVu7d2INLCwwFUjL6ENfQbm+tIUxxwte6xkSx0d13wEzrBHGD/7UpUXgYdo2gLZuCBz7/sAj2Awneb4aWuHX8Z+yDVRJZhDk+6xaCcoGib4Ija+tjcl0nfrInM4MwhUiLgF53uKXuN7GwZwuJCAuBW8iVZdLND+6/oZMgWimSgx7r6W82A0KcpTtPGHEEovf7cF5YVsqp7XbaG3yZpePMaMLKD5zC9P64pADDemsi7cEkx3hWgF3LRWRxgMYw1tD6opM7MRdrTvGBOIV3h+bnAeciRWomF9dFWNNoXH/ TUWgDXY3 T0eZAbGrTfCNiig0MRuueyN1j5/+hY66QLWMnIW3sBdVzlS9imTv4mGd2P+2mOY+BtZ0/yrICL9GLBG6ho8CMpbb2LQDQCO+i3ORsmviwp6R72WUV24jysJXJhYqCcqC8v6kA9CWsgdEHBUpMJLwZyTV0bQmGj3J4eZzGrL+54E1D1DNf/BAYNa4OJCVLRbbSkBSS5K/zX2KQ86Dwx3Ib8IQGwllrd8++PqZouRnVcfbV7c1VJsPyF6NwDPNA0OZQC0DfNabmlapeOco= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000005, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: When CONFIG_HWPOISON_INJECT is not enabled, there is no user of the hwpoison_filter(). Remove it. Signed-off-by: Miaohe Lin --- mm/memory-failure.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index be9bda281d91..2c3ecbfc2134 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -294,14 +294,8 @@ int hwpoison_filter(struct page *p) return 0; } -#else -int hwpoison_filter(struct page *p) -{ - return 0; -} -#endif - EXPORT_SYMBOL_GPL(hwpoison_filter); +#endif /* * Kill all processes that have a poisoned page mapped and then isolate