* [PATCH -mmotm] mm: memory-failure: add stub for page_handle_poison()
@ 2020-06-26 20:15 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2020-06-26 20:15 UTC (permalink / raw)
To: LKML, Linux MM, Andrew Morton, Oscar Salvador
From: Randy Dunlap <rdunlap@infradead.org>
Fix a build error when no HWPOISON kconfig symbols are set/enabled
by providing a stub function for 'page_handle_poison()'.
../mm/memory-failure.c: In function ‘__soft_offline_page’:
../mm/memory-failure.c:1827:3: error: implicit declaration of function ‘page_handle_poison’; did you mean ‘page_init_poison’? [-Werror=implicit-function-declaration]
page_handle_poison(page, false, true);
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: Oscar Salvador <osalvador@suse.de>
---
mm/memory-failure.c | 5 +++++
1 file changed, 5 insertions(+)
--- mmotm-2020-0625-2036.orig/mm/memory-failure.c
+++ mmotm-2020-0625-2036/mm/memory-failure.c
@@ -200,6 +200,11 @@ 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-26 20:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-26 20:15 [PATCH -mmotm] mm: memory-failure: add stub for page_handle_poison() Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox