projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3820b4d
)
uprobes: Kill module_init() and module_exit()
author
Oleg Nesterov
<oleg@redhat.com>
Thu, 31 Oct 2013 18:28:22 +0000
(19:28 +0100)
committer
Oleg Nesterov
<oleg@redhat.com>
Wed, 6 Nov 2013 18:59:50 +0000
(19:59 +0100)
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>
kernel/events/uprobes.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/events/uprobes.c
b/kernel/events/uprobes.c
index ae9e1d2ef256acb1ae457e842aaf92e0b3a7d875..0012c8ebb098bccc6175e37c6aa25335c19504c8 100644
(file)
--- a/
kernel/events/uprobes.c
+++ b/
kernel/events/uprobes.c
@@
-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);