Skip to content

Commit

Permalink
[PATCH] Fix do_mbind warning with CONFIG_MIGRATION=n
Browse files Browse the repository at this point in the history
With CONFIG_MIGRATION=n

mm/mempolicy.c: In function 'do_mbind':
mm/mempolicy.c:796: warning: passing argument 2 of 'migrate_pages' from incompatible pointer type

Signed-off-by: Keith Owens <kaos@ocs.com.au>
Cc: Christoph Lameter <clameter@engr.sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Keith Owens authored and Linus Torvalds committed Oct 11, 2006
1 parent b16bc64 commit 6993974
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ int do_migrate_pages(struct mm_struct *mm,
return -ENOSYS;
}

static struct page *new_vma_page(struct page *page, unsigned long private)
static struct page *new_vma_page(struct page *page, unsigned long private, int **x)
{
return NULL;
}
Expand Down

0 comments on commit 6993974

Please sign in to comment.