aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/oprofile
diff options
context:
space:
mode:
authorRussell King <rmk@arm.linux.org.uk>2009-03-29 12:12:22 -0400
committerRusty Russell <rusty@rustcorp.com.au>2009-03-30 07:35:18 -0400
commitbb75efddeaca89f8a67fd82cdcbaaf436cf17ca9 (patch)
treea0c5c0d07a62b002f2793ac8d57aa1c3b1791925 /drivers/oprofile
parent97c12f85ac5e4ac2faee6cada014ac6205105b19 (diff)
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)
574 return 0; 574 return 0;
575} 575}
576 576
577void __exit buffer_sync_cleanup(void) 577void buffer_sync_cleanup(void)
578{ 578{
579 free_cpumask_var(marked_cpus); 579 free_cpumask_var(marked_cpus);
580} 580}