kernel/profile: fix profile_init() section mismatch
authorPaul Mundt <[email protected]>
Wed, 29 Oct 2008 21:01:07 +0000 (14:01 -0700)
committerLinus Torvalds <[email protected]>
Thu, 30 Oct 2008 18:38:46 +0000 (11:38 -0700)
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]>
kernel/profile.c

index a9e422df6bf63e28648432efa7f0503aa09ffe8f..9830a037d8db1543215f02c01918af3fd980bb10 100644 (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)