Skip to content

Commit

Permalink
sh64: Flag sh64_get_page() as __init_refok.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
pmundt committed Jul 20, 2007
1 parent 5698200 commit fad9e7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/sh64/mm/ioremap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fad9e7d

Please sign in to comment.