s390/jump_label: add __init_or_module annotation
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 4 Oct 2021 10:07:35 +0000 (12:07 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 11 Oct 2021 18:55:58 +0000 (20:55 +0200)
Add missing __init_or_module to arch_jump_label_transform_static().

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/kernel/jump_label.c

index 0546c67..6bec000 100644 (file)
@@ -7,6 +7,7 @@
  */
 #include <linux/uaccess.h>
 #include <linux/jump_label.h>
+#include <linux/module.h>
 #include <asm/text-patching.h>
 #include <asm/ipl.h>
 
@@ -91,8 +92,8 @@ void arch_jump_label_transform_apply(void)
        text_poke_sync();
 }
 
-void arch_jump_label_transform_static(struct jump_entry *entry,
-                                     enum jump_label_type type)
+void __init_or_module arch_jump_label_transform_static(struct jump_entry *entry,
+                                                      enum jump_label_type type)
 {
        jump_label_transform(entry, type, 1);
        text_poke_sync();