diff options
| author | Oleg Nesterov <oleg@redhat.com> | 2013-10-31 14:28:22 -0400 |
|---|---|---|
| committer | Oleg Nesterov <oleg@redhat.com> | 2013-11-06 13:59:50 -0500 |
| commit | 736e89d9f782a7dd9a38ecda13b2db916fa72f33 (patch) | |
| tree | f2b6362335c4e91014e6ce8a4878a3a84299e606 /kernel/events | |
| parent | 3820b4d2789f5166afdb136bb14f93166e6cfbc2 (diff) | |
uprobes: Kill module_init() and module_exit()
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>
Diffstat (limited to 'kernel/events')
| -rw-r--r-- | kernel/events/uprobes.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c index ae9e1d2ef256..0012c8ebb098 100644 --- a/kernel/events/uprobes.c +++ b/kernel/events/uprobes.c | |||
| @@ -1941,9 +1941,4 @@ static int __init init_uprobes(void) | |||
| 1941 | 1941 | ||
| 1942 | return register_die_notifier(&uprobe_exception_nb); | 1942 | return register_die_notifier(&uprobe_exception_nb); |
| 1943 | } | 1943 | } |
| 1944 | module_init(init_uprobes); | 1944 | __initcall(init_uprobes); |
| 1945 | |||
| 1946 | static void __exit exit_uprobes(void) | ||
| 1947 | { | ||
| 1948 | } | ||
| 1949 | module_exit(exit_uprobes); | ||
