Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.

Commit

Permalink
kernel/profile: fix profile_init() section mismatch
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
pmundt authored and torvalds committed Oct 30, 2008
1 parent 84ad6d7 commit ce05fcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/profile.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ce05fcc

Please sign in to comment.