Skip to content

Commit

Permalink
uprobes: Kill module_init() and module_exit()
Browse files Browse the repository at this point in the history
Turn module_init() into __initcall() and kill module_exit().

This code can't be compiled as a module so these module_*()
calls only add the confusion, especially if arch-dependant
code needs its own initialization hooks.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
  • Loading branch information
Oleg Nesterov committed Nov 6, 2013
1 parent 3820b4d commit 736e89d
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -1941,9 +1941,4 @@ static int __init init_uprobes(void)

return register_die_notifier(&uprobe_exception_nb);
}
module_init(init_uprobes);

static void __exit exit_uprobes(void)
{
}
module_exit(exit_uprobes);
__initcall(init_uprobes);

0 comments on commit 736e89d

Please sign in to comment.