When CONFIG_HWPOISON_INJECT is not enabled, there is no user of the hwpoison_filter(). Remove it. Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx> --- 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