summaryrefslogtreecommitdiff
path: root/arch/s390/kernel/jump_label.c
diff options
context:
space:
mode:
authorHeiko Carstens <hca@linux.ibm.com>2021-10-04 13:07:35 +0300
committerVasily Gorbik <gor@linux.ibm.com>2021-10-11 21:55:58 +0300
commit0c14c037952c0e29c3c66ccad6301648e02e11e1 (patch)
tree43fd75702bbc4fd02b34537664aa15046280e546 /arch/s390/kernel/jump_label.c
parentacd6c9afc63cbb571d5312e7f7583bf266e61f69 (diff)
downloadlinux-0c14c037952c0e29c3c66ccad6301648e02e11e1.tar.xz
s390/jump_label: add __init_or_module annotation
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>
Diffstat (limited to 'arch/s390/kernel/jump_label.c')
-rw-r--r--arch/s390/kernel/jump_label.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/s390/kernel/jump_label.c b/arch/s390/kernel/jump_label.c
index 0546c67da99b..6bec000c6c1c 100644
--- a/arch/s390/kernel/jump_label.c
+++ b/arch/s390/kernel/jump_label.c
@@ -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();