Pārlūkot izejas kodu

sh64: Flag sh64_get_page() as __init_refok.

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>
Paul Mundt 18 gadi atpakaļ
vecāks
revīzija
fad9e7d957
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      arch/sh64/mm/ioremap.c

+ 1 - 1
arch/sh64/mm/ioremap.c

@@ -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;