Skip to contentSkip to conversation

kernel/profile: Fix profile_init() section mismatch.

PATCH New Paul Mundt 1 participant 1 message Oct 22, 2008

lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 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.

---

 kernel/profile.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/profile.c +1 -1
index a9e422d..9830a03 100644
@@ -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)