linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: hwpoison tree build failure
@ 2009-12-08  8:14 Stephen Rothwell
  2009-12-08  9:51 ` Andi Kleen
  0 siblings, 1 reply; 7+ messages in thread
From: Stephen Rothwell @ 2009-12-08  8:14 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-next, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

Hi Andi,

Today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: "set_migratetype_isolate" [mm/hwpoison-inject.ko] undefined!
ERROR: "unset_migratetype_isolate" [mm/hwpoison-inject.ko] undefined!

I have used the version from next-20091207 for today.
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread
* linux-next: hwpoison tree build failure
@ 2009-12-16  6:26 Stephen Rothwell
  2009-12-16  8:49 ` Hugh Dickins
  2009-12-16 10:13 ` Andi Kleen
  0 siblings, 2 replies; 7+ messages in thread
From: Stephen Rothwell @ 2009-12-16  6:26 UTC (permalink / raw)
  To: Andi Kleen; +Cc: linux-next, linux-kernel, Hugh Dickins, Andrew Morton

Hi Andi,

Today's linux-next build (x86_64 allmodconfig) failed like this:

mm/memory-failure.c: In function 'soft_offline_page':
mm/memory-failure.c:1266: error: too few arguments to function 'migrate_pages'

Caused by commit c71d409184af558ddac0fd0167061d6282428872 ("HWPOISON: Add
soft page offline support") from the hwpoison tree interacting with
commit 62b61f611eb5e20f7e9f8619bfd03bdfe8af6348 ("ksm: memory hotremove
migration only") from Linus' tree.

I added the following merge fix for today (I don't know if it is correct)
and can carry it for a while:

From: Stephen Rothwell <sfr@canb.auug.org.au>
Date: Wed, 16 Dec 2009 17:19:40 +1100
Subject: [PATCH] hwpoison: fix for migrate_pages API change

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 mm/memory-failure.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index 7f3f627..bcce287 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -1263,7 +1263,7 @@ int soft_offline_page(struct page *page, int flags)
 		LIST_HEAD(pagelist);
 
 		list_add(&page->lru, &pagelist);
-		ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL);
+		ret = migrate_pages(&pagelist, new_page, MPOL_MF_MOVE_ALL, 0);
 		if (ret) {
 			pr_debug("soft offline: %#lx: migration failed %d, type %lx\n",
 				pfn, ret, page->flags);
-- 
1.6.5.4


-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-12-16 10:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-08  8:14 linux-next: hwpoison tree build failure Stephen Rothwell
2009-12-08  9:51 ` Andi Kleen
2009-12-08 23:25   ` Stephen Rothwell
2009-12-09  9:13     ` Andi Kleen
  -- strict thread matches above, loose matches on Subject: below --
2009-12-16  6:26 Stephen Rothwell
2009-12-16  8:49 ` Hugh Dickins
2009-12-16 10:13 ` Andi Kleen

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).