From: Andi Kleen Fix a warning on x86_64 (and presumably ia64) which arises from casting an int to a pointer. mm/page_alloc.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -puN mm/page_alloc.c~compound-page-warning-fix mm/page_alloc.c --- 25/mm/page_alloc.c~compound-page-warning-fix 2003-03-25 00:47:48.000000000 -0800 +++ 25-akpm/mm/page_alloc.c 2003-03-25 00:47:48.000000000 -0800 @@ -106,7 +106,7 @@ static void bad_page(const char *functio * This is only for debug at present. This usage means that zero-order pages * may not be compound. */ -static void prep_compound_page(struct page *page, int order) +static void prep_compound_page(struct page *page, unsigned long order) { int i; int nr_pages = 1 << order; @@ -121,7 +121,7 @@ static void prep_compound_page(struct pa } } -static void destroy_compound_page(struct page *page, int order) +static void destroy_compound_page(struct page *page, unsigned long order) { int i; int nr_pages = 1 << order; _