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 <[email protected]>
===== arch/i386/oprofile/nmi_int.c 1.27 vs edited =====
--- 1.27/arch/i386/oprofile/nmi_int.c 2005-01-30 23:33:47 -07:00
+++ edited/arch/i386/oprofile/nmi_int.c 2005-02-08 23:08:33 -07:00
@@ -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_oper
}
-void __exit nmi_exit(void)
+void nmi_exit(void)
{
if (using_nmi)
exit_driverfs();