summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Pitre <nicolas.pitre@linaro.org>2011-12-13 14:28:39 -0500
committerNicolas Pitre <nicolas.pitre@linaro.org>2011-12-13 14:28:39 -0500
commit971be11492b1e248798f7078592b1fa0dfbf3534 (patch)
tree42293c18ea09088ca44db3a2f18f79e0b8ae86bf
parent874b0239d896c2b493f2c4c23b2a60ad258632b3 (diff)
ARM: oprofile: don't mark oprofile_arch_exit() with __exit
When the oprofile code is built into the kernel, the code marked with __exit is discarded at link time. This fails the build as oprofile_arch_exit() is referenced from oprofile_init() which is in a different section. Signed-off-by: Nicolas Pitre <nico@linaro.org>
-rw-r--r--arch/arm/oprofile/common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/oprofile/common.c b/arch/arm/oprofile/common.c
index c074e66ad22..4e0a371630b 100644
--- a/arch/arm/oprofile/common.c
+++ b/arch/arm/oprofile/common.c
@@ -116,7 +116,7 @@ int __init oprofile_arch_init(struct oprofile_operations *ops)
return oprofile_perf_init(ops);
}
-void __exit oprofile_arch_exit(void)
+void oprofile_arch_exit(void)
{
oprofile_perf_exit();
}