[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5bc95fd0-4c21-59c3-4629-7b6848b6a399@infradead.org>
Date: Fri, 26 Jun 2020 13:15:19 -0700
From: Randy Dunlap <rdunlap@...radead.org>
To: LKML <linux-kernel@...r.kernel.org>, Linux MM <linux-mm@...ck.org>,
Andrew Morton <akpm@...ux-foundation.org>,
Oscar Salvador <osalvador@...e.de>
Subject: [PATCH -mmotm] mm: memory-failure: add stub for page_handle_poison()
From: Randy Dunlap <rdunlap@...radead.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@...radead.org>
Cc: Oscar Salvador <osalvador@...e.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);
Powered by blists - more mailing lists