linux-next: build failure after merge of the akpm-current tree
Hi Andrew,
After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this:
mm/migrate.c: In function 'migrate_misplaced_page':mm/migrate.c:1933:46: error: passing argument 2 of 'migrate_pages' from incompatible pointer type [-Werror=incompatible-pointer-types]
nr_remaining = migrate_pages(&migratepages, alloc_misplaced_dst_page,
^
mm/migrate.c:1358:5: note: expected 'struct page * (*)(struct page *, long unsigned int)' but argument is of type 'struct page * (*)(struct page *, long unsigned int, int **)'
int migrate_pages(struct list_head *from, new_page_t get_new_page,
^Caused by commit
d6f08a86f78a ("mm, migrate: remove reason argument from new_page_t")
I applied the following fix patch for today (the mm/memory-failure.c error turned up after fixing the above):
From: Stephen Rothwell <[email protected]>
Date: Fri, 5 Jan 2018 15:46:02 +1100
Subject: [PATCH] mm, migrate: remove reason argument from new_page_t fix
Signed-off-by Stephen Rothwell <[email protected]>
--- mm/memory-failure.c | 2 +- mm/migrate.c | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-)
mm/memory-failure.c +1 -1
@@ -1483,7 +1483,7 @@ int unpoison_memory(unsigned long pfn) }EXPORT_SYMBOL (unpoison_memory); -static struct page *new_page (struct page *p,unsigned long private,int **x) +static struct page *new_page (struct page *p,unsigned long private) {int nid =page_to_nid (p);
mm/migrate.c +1 -2
@@ -1797,8 +1797,7 @@ static bool migrate_balanced_pgdat(struct pglist_data *pgdat, }static struct page *alloc_misplaced_dst_page (struct page *page, -unsigned long data, -int **result) +unsigned long data) {int nid = (int ) data;struct page *newpage;
Signature · 5 lines
2.15.0 -- Cheers, Stephen Rothwell