lkml.org 
[lkml]   [2008]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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>

---

kernel/profile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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)

\
 
 \ /
  Last update: 2008-10-22 12:51    [W:1.305 / U:0.736 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site