Skip to content

Commit ce05fcc

Browse files
pmundttorvalds
authored andcommitted
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>
1 parent 84ad6d7 commit ce05fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/profile.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ int profile_setup(char *str)
102102
__setup("profile=", profile_setup);
103103

104104

105-
int profile_init(void)
105+
int __ref profile_init(void)
106106
{
107107
int buffer_bytes;
108108
if (!prof_on)

0 commit comments

Comments
 (0)