ChangeSet 1.2011, 2005/02/10 14:40:45-08:00, [EMAIL PROTECTED] [PATCH] OProfile: exit.text referenced in init.text 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]> Signed-off-by: Andrew Morton <[EMAIL PROTECTED]> Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
nmi_int.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -Nru a/arch/i386/oprofile/nmi_int.c b/arch/i386/oprofile/nmi_int.c --- a/arch/i386/oprofile/nmi_int.c 2005-02-10 18:08:43 -08:00 +++ b/arch/i386/oprofile/nmi_int.c 2005-02-10 18:08:43 -08:00 @@ -70,7 +70,7 @@ } -static void __exit exit_driverfs(void) +static void exit_driverfs(void) { sysdev_unregister(&device_oprofile); sysdev_class_unregister(&oprofile_sysclass); @@ -420,7 +420,7 @@ } -void __exit nmi_exit(void) +void nmi_exit(void) { if (using_nmi) exit_driverfs(); - To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html