[PATCH] mm-meminit-inline-some-helper-functions-fix2.patch

From: Michal Hocko
Date: Mon May 04 2015 - 04:35:36 EST


mm/page_alloc.c: In function âdeferred_init_memmapâ:
mm/page_alloc.c:1135:4: error: implicit declaration of function âmeminit_pfn_in_nidâ [-Werror=implicit-function-declaration]
if (!meminit_pfn_in_nid(pfn, nid, &nid_init_state)) {
^

because randconfig decided to disable CONFIG_NODES_SPAN_OTHER_NODES.

Signed-off-by: Michal Hocko <mhocko@xxxxxxx>
---
mm/page_alloc.c | 5 +++++
1 file changed, 5 insertions(+)

diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 3e0257debce0..a48128d882d8 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -1044,6 +1044,11 @@ static inline bool __meminit early_pfn_in_nid(unsigned long pfn, int node)
{
return true;
}
+static inline bool __meminit meminit_pfn_in_nid(unsigned long pfn, int node,
+ struct mminit_pfnnid_cache *state)
+{
+ return true;
+}
#endif


--
2.1.4

--
Michal Hocko
SUSE Labs
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/