All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kernel/profile: Fix profile_init() section mismatch.
@ 2008-10-22 10:48 Paul Mundt
  0 siblings, 0 replies; only message in thread
From: Paul Mundt @ 2008-10-22 10:48 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

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)

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2008-10-22 10:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-22 10:48 [PATCH] kernel/profile: Fix profile_init() section mismatch Paul Mundt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.