Skip to content

Commit

Permalink
RISC-V: KVM: add __init annotation to riscv_kvm_init()
Browse files Browse the repository at this point in the history
The riscv_kvm_init() is a module_init entry so let us add __init
annotation to it.

Signed-off-by: Xiu Jianfeng <xiujianfeng@huawei.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
  • Loading branch information
Xiu Jianfeng authored and Anup Patel committed Oct 2, 2022
1 parent 56852c6 commit f493cdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/riscv/kvm/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ void kvm_arch_exit(void)
{
}

static int riscv_kvm_init(void)
static int __init riscv_kvm_init(void)
{
return kvm_init(NULL, sizeof(struct kvm_vcpu), 0, THIS_MODULE);
}
Expand Down

0 comments on commit f493cdc

Please sign in to comment.