summaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2009-03-29 18:12:22 +0200
committerRusty Russell <rusty@rustcorp.com.au>2009-03-30 13:35:18 +0200
commitbb75efddeaca89f8a67fd82cdcbaaf436cf17ca9 (patch)
treea0c5c0d07a62b002f2793ac8d57aa1c3b1791925 /drivers/oprofile
parentcpumask: remove the now-obsoleted pcibus_to_cpumask(): generic (diff)
downloadlinux-bb75efddeaca89f8a67fd82cdcbaaf436cf17ca9.tar.xz
linux-bb75efddeaca89f8a67fd82cdcbaaf436cf17ca9.zip
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 <rmk+kernel@arm.linux.org.uk> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/oprofile')
-rw-r--r--drivers/oprofile/buffer_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index c3ea5fa7d05a..2c9aa49e43cd 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);
}