]> err.no Git - linux-2.6/commitdiff
sh64: Flag sh64_get_page() as __init_refok.
authorPaul Mundt <lethal@linux-sh.org>
Fri, 20 Jul 2007 08:46:42 +0000 (17:46 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Fri, 20 Jul 2007 08:46:42 +0000 (17:46 +0900)
sh64_get_page() wraps in to regular allocators as well as the
bootmem allocator for fetching pages, it carefully checks to
see which one it can use depending on the system state, so
the access is safe.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh64/mm/ioremap.c

index ff26c02511aa6eac58ed79bb284f7bb76604e2f0..990857756d44db11195d23edc5eee4564a8a7556 100644 (file)
@@ -242,7 +242,7 @@ static void shmedia_free_io(struct resource *res)
        release_resource(res);
 }
 
-static void *sh64_get_page(void)
+static __init_refok void *sh64_get_page(void)
 {
        extern int after_bootmem;
        void *page;