summaryrefslogtreecommitdiffstats
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-10-29 22:01:07 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2008-10-30 19:38:46 +0100
commitce05fcc30ea41c85f9d50bee1ce289f7cb7fb223 (patch)
tree925dff669191e3a539febf74ad7aadc940ff3d88 /kernel/profile.c
parentmemcg: update menuconfig help text (diff)
downloadlinux-ce05fcc30ea41c85f9d50bee1ce289f7cb7fb223.tar.xz
linux-ce05fcc30ea41c85f9d50bee1ce289f7cb7fb223.zip
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>
Diffstat (limited to 'kernel/profile.c')
-rw-r--r--kernel/profile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/profile.c b/kernel/profile.c
index a9e422df6bf6..9830a037d8db 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)