[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240524091310.1430048-8-linmiaohe@huawei.com>
Date: Fri, 24 May 2024 17:13:04 +0800
From: Miaohe Lin <linmiaohe@...wei.com>
To: <akpm@...ux-foundation.org>, <tony.luck@...el.com>, <bp@...en8.de>
CC: <nao.horiguchi@...il.com>, <linmiaohe@...wei.com>, <linux-mm@...ck.org>,
<linux-kernel@...r.kernel.org>, <linux-edac@...r.kernel.org>
Subject: [PATCH 07/13] mm/memory-failure: remove unneeded hwpoison_filter() variant
When CONFIG_HWPOISON_INJECT is not enabled, there is no user of the
hwpoison_filter(). Remove it.
Signed-off-by: Miaohe Lin <linmiaohe@...wei.com>
---
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
--
2.33.0
Powered by blists - more mailing lists