Browse Source

livepatch: annotate klp_init() with __init

module_init() function should be marked __init.

[jkosina@suse.cz: remove overly verbose changelog]
Signed-off-by: Minfei Huang <mnfhuang@gmail.com>
Acked-by: Josh Poimboeuf <jpoimboe@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Minfei Huang 10 years ago
parent
commit
26029d88ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      kernel/livepatch/core.c

+ 1 - 1
kernel/livepatch/core.c

@@ -990,7 +990,7 @@ static struct notifier_block klp_module_nb = {
 	.priority = INT_MIN+1, /* called late but before ftrace notifier */
 };
 
-static int klp_init(void)
+static int __init klp_init(void)
 {
 	int ret;