livepatch: annotate klp_init() with __init
authorMinfei Huang <mnfhuang@gmail.com>
Fri, 22 May 2015 14:26:29 +0000 (22:26 +0800)
committerJiri Kosina <jkosina@suse.cz>
Mon, 25 May 2015 15:16:45 +0000 (17:16 +0200)
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>
kernel/livepatch/core.c

index c38398e20f64fe6f2bf83bdf003eabd78019a30e..a0acda468f1a9e9d38be8cc3d577a594b80ba2ae 100644 (file)
@@ -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;