Commit f7581af4 authored by Zwane Mwaikambo's avatar Zwane Mwaikambo Committed by Linus Torvalds

[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: default avatarZwane Mwaikambo <zwane@arm.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 39b56d90
...@@ -70,7 +70,7 @@ static int __init init_driverfs(void) ...@@ -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_unregister(&device_oprofile);
sysdev_class_unregister(&oprofile_sysclass); sysdev_class_unregister(&oprofile_sysclass);
...@@ -420,7 +420,7 @@ int __init nmi_init(struct oprofile_operations *ops) ...@@ -420,7 +420,7 @@ int __init nmi_init(struct oprofile_operations *ops)
} }
void __exit nmi_exit(void) void nmi_exit(void)
{ {
if (using_nmi) if (using_nmi)
exit_driverfs(); exit_driverfs();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment