projects/linux·commit ce05fcc3

kernel/profile: fix profile_init() section mismatch

ce05fcc3 · Paul Mundt <[email protected]> · 2008-10-29 14:01:07 -07:00

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 <[email protected]>
Cc: Dave Hansen <[email protected]>
Cc: Sam Ravnborg <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
ce05fcc30ea41c85f9d50bee1ce289f7cb7fb223
Parents
84ad6d70

Changes

1 files changed · +1 −1

FileStatusAddDelContent
kernel/profile.cmodified+1−1View file

kernel/profile.c

View file
diff --git a/kernel/profile.c b/kernel/profile.c
index a9e422d..9830a03 100644
--- a/kernel/profile.c
+++ b/kernel/profile.c
@@ -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)