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: Paul Mundt <lethal@linux-sh.org>
Cc: Dave Hansen <dave@linux.vnet.ibm.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Paul Mundt 2008-10-29 14:01:07 -07:00 committed by Linus Torvalds
parent 84ad6d7000
commit ce05fcc30e
1 changed files with 1 additions and 1 deletions

View File

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