From: Al Viro <v...@zeniv.linux.org.uk> Signed-off-by: Al Viro <v...@zeniv.linux.org.uk> --- arch/cris/mm/init.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/arch/cris/mm/init.c b/arch/cris/mm/init.c index dd87022..71a012c 100644 --- a/arch/cris/mm/init.c +++ b/arch/cris/mm/init.c @@ -40,9 +40,10 @@ void free_init_pages(const char *what, unsigned long begin, unsigned long end) unsigned long addr; for (addr = begin; addr < end; addr += PAGE_SIZE) { - ClearPageReserved(virt_to_page(addr)); - init_page_count(virt_to_page(addr)); - free_page((void *)addr); + struct page *page = virt_to_page(addr); + ClearPageReserved(page); + init_page_count(page); + __free_page(page); totalram_pages++; } -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/