lkml.org 
[lkml]   [2020]   [Jul]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Subject[PATCH -mmotm] mm/memory-failure: remove stub function
From
Date
From: Randy Dunlap <rdunlap@infradead.org>

This stub is no longer needed since the function is no longer
inside an #ifdef/#endif block.

Fixes this build error:

../mm/memory-failure.c:180:13: error: redefinition of ‘page_handle_poison’

Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Oscar Salvador <osalvador@suse.de>
---
mm/memory-failure.c | 4 ----
1 file changed, 4 deletions(-)

--- mmotm-2020-0630-2152.orig/mm/memory-failure.c
+++ mmotm-2020-0630-2152/mm/memory-failure.c
@@ -169,10 +169,6 @@ int hwpoison_filter(struct page *p)
return 0;
}

-static bool page_handle_poison(struct page *page, bool hugepage_or_freepage, bool release)
-{
- return true;
-}
#endif

EXPORT_SYMBOL_GPL(hwpoison_filter);

\
 
 \ /
  Last update: 2020-07-01 17:48    [W:0.035 / U:1.192 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site