From: Randy Dunlap <rdunlap@infradead.org>
To: LKML <linux-kernel@vger.kernel.org>,
Linux MM <linux-mm@kvack.org>,
Andrew Morton <akpm@linux-foundation.org>,
Oscar Salvador <osalvador@suse.de>
Subject: [PATCH -mmotm] mm: memory-failure: add stub for page_handle_poison()
Date: Fri, 26 Jun 2020 13:15:19 -0700 [thread overview]
Message-ID: <5bc95fd0-4c21-59c3-4629-7b6848b6a399@infradead.org> (raw)
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);
reply other threads:[~2020-06-26 20:15 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5bc95fd0-4c21-59c3-4629-7b6848b6a399@infradead.org \
--to=rdunlap@infradead.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=osalvador@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).