From: Russell King Date: Sun, 29 Mar 2009 16:12:22 +0000 (+0100) Subject: oprofile: Thou shalt not call __exit functions from __init functions X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=bb75efddeaca89f8a67fd82cdcbaaf436cf17ca9;p=linux-2.6-omap-h63xx.git oprofile: Thou shalt not call __exit functions from __init functions Impact: fix ref to discarded function `buffer_sync_cleanup' referenced in section `.init.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o Signed-off-by: Russell King Signed-off-by: Rusty Russell --- diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c index c3ea5fa7d05..2c9aa49e43c 100644 --- a/drivers/oprofile/buffer_sync.c +++ b/drivers/oprofile/buffer_sync.c @@ -574,7 +574,7 @@ int __init buffer_sync_init(void) return 0; } -void __exit buffer_sync_cleanup(void) +void buffer_sync_cleanup(void) { free_cpumask_var(marked_cpus); }