]> git.hungrycats.org Git - linux/commitdiff
[PATCH] OProfile: exit.text referenced in init.text
authorZwane Mwaikambo <zwane@arm.linux.org.uk>
Thu, 10 Feb 2005 06:40:45 +0000 (22:40 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 10 Feb 2005 06:40:45 +0000 (22:40 -0800)
The linker doesn't complain, but i got this error on ARM which has similar
code.

oprofile_arch_exit: discarded in section `.exit.text' from arch/arm/oprofile/built-in.o
arch/arm/oprofile/built-in.o(.init.text+0x4c): In function `oprofile_init':
: relocation truncated to fit: R_ARM_PC24 oprofile_arch_exit

oprofile_arch_init()
<error path>
oprofile_arch_exit()
__exit nmi_exit()
__exit exit_driverfs()

Signed-off-by: Zwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/oprofile/nmi_int.c

index 715f245526baf1318d221897fec56ea291071e85..3492d961d3f17bded544191a6398de9a89e5982e 100644 (file)
@@ -70,7 +70,7 @@ static int __init init_driverfs(void)
 }
 
 
-static void __exit exit_driverfs(void)
+static void exit_driverfs(void)
 {
        sysdev_unregister(&device_oprofile);
        sysdev_class_unregister(&oprofile_sysclass);
@@ -420,7 +420,7 @@ int __init nmi_init(struct oprofile_operations *ops)
 }
 
 
-void __exit nmi_exit(void)
+void nmi_exit(void)
 {
        if (using_nmi)
                exit_driverfs();