Commit 4976a07d authored by Andrew Morton's avatar Andrew Morton Committed by Dave Jones

[PATCH] Fix 64bit warnings in mm/page_alloc.c

From: Andi Kleen <ak@muc.de>

Fix a warning on x86_64 (and presumably ia64) which arises from casting an
int to a pointer.
parent e2faff60
......@@ -106,7 +106,7 @@ static void bad_page(const char *function, struct page *page)
* 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 page *page, int order)
}
}
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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment