Skip to content

Commit

Permalink
oprofile: Thou shalt not call __exit functions from __init functions
Browse files Browse the repository at this point in the history
Impact: fix ref to discarded function

`buffer_sync_cleanup' referenced in section `.init.text' of arch/arm/oprofile/built-in.o: defined in discarded section `.exit.text' of arch/arm/oprofile/built-in.o

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
Russell King authored and rustyrussell committed Mar 30, 2009
1 parent 97c12f8 commit bb75efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/oprofile/buffer_sync.c
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ int __init buffer_sync_init(void)
return 0;
}

void __exit buffer_sync_cleanup(void)
void buffer_sync_cleanup(void)
{
free_cpumask_var(marked_cpus);
}
Expand Down

0 comments on commit bb75efd

Please sign in to comment.