[PATCH -next] RISC-V: KVM: add __init annotation to riscv_kvm_init()

Xiu Jianfeng xiujianfeng at huawei.com
Tue Sep 20 06:47:03 PDT 2022


It's module_init entry, add __init annotation to it.

Signed-off-by: Xiu Jianfeng <xiujianfeng at huawei.com>
---
 arch/riscv/kvm/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kvm/main.c b/arch/riscv/kvm/main.c
index 1549205fe5fe..df2d8716851f 100644
--- a/arch/riscv/kvm/main.c
+++ b/arch/riscv/kvm/main.c
@@ -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);
 }
-- 
2.17.1




More information about the linux-riscv mailing list