]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
RISC-V: KVM: add __init annotation to riscv_kvm_init()
authorXiu Jianfeng <xiujianfeng@huawei.com>
Sun, 2 Oct 2022 04:49:11 +0000 (10:19 +0530)
committerAnup Patel <anup@brainfault.org>
Sun, 2 Oct 2022 04:49:11 +0000 (10:19 +0530)
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>
arch/riscv/kvm/main.c

index 1549205fe5feb22cb1bb3807cec74f499c542d9a..df2d8716851f20cd226419dca6a35c2bf9595aef 100644 (file)
@@ -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);
 }