Commit ce05fcc3 authored by Paul Mundt's avatar Paul Mundt Committed by Linus Torvalds

kernel/profile: fix profile_init() section mismatch

profile_init() calls in to alloc_bootmem() on early initialization.  While
alloc_bootmem() is __init, the reference itself is safe in that it is
tucked below a !slab_is_available() check.  So, flag profile_init() as
__ref.
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 84ad6d70
......@@ -102,7 +102,7 @@ int profile_setup(char *str)
__setup("profile=", profile_setup);
int profile_init(void)
int __ref profile_init(void)
{
int buffer_bytes;
if (!prof_on)
......
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