From: Paul Mundt Date: Wed, 29 Oct 2008 21:01:07 +0000 (-0700) Subject: kernel/profile: fix profile_init() section mismatch X-Git-Tag: v2.6.28-rc3~66 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ce05fcc30ea41c85f9d50bee1ce289f7cb7fb223;p=linux-2.6-omap-h63xx.git 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 Cc: Dave Hansen Cc: Sam Ravnborg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/profile.c b/kernel/profile.c index a9e422df6bf..9830a037d8d 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)