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>
This commit is contained in:
Heiko Carstens 2021-10-04 12:07:35 +02:00 committed by Vasily Gorbik
parent acd6c9afc6
commit 0c14c03795
1 changed files with 3 additions and 2 deletions

View 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();