summaryrefslogtreecommitdiff
path: root/kernel/livepatch
diff options
context:
space:
mode:
authorMinfei Huang <mnfhuang@gmail.com>2015-05-22 22:26:29 +0800
committerJiri Kosina <jkosina@suse.cz>2015-05-25 17:16:45 +0200
commit26029d88ad1ba6ad7d1f16f22dc67aa8eac0d391 (patch)
treead3eb5ef4878af62a92559938fc522da10f43a53 /kernel/livepatch
parent8cdd043ab32c2ff28d2a77c514a768a9edce244c (diff)
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>
Diffstat (limited to 'kernel/livepatch')
-rw-r--r--kernel/livepatch/core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/livepatch/core.c b/kernel/livepatch/core.c
index c38398e20f64..a0acda468f1a 100644
--- a/kernel/livepatch/core.c
+++ b/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;