projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56852c6
)
RISC-V: KVM: add __init annotation to riscv_kvm_init()
author
Xiu Jianfeng
<xiujianfeng@huawei.com>
Sun, 2 Oct 2022 04:49:11 +0000
(10:19 +0530)
committer
Anup 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
patch
|
blob
|
blame
|
history
diff --git
a/arch/riscv/kvm/main.c
b/arch/riscv/kvm/main.c
index 1549205fe5feb22cb1bb3807cec74f499c542d9a..df2d8716851f20cd226419dca6a35c2bf9595aef 100644
(file)
--- 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);
}