projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5ebd737
)
KVM: SVM: Tag MSR bitmap initialization helpers with __init
author
Sean Christopherson
<seanjc@google.com>
Tue, 10 Jun 2025 22:57:09 +0000
(15:57 -0700)
committer
Sean Christopherson
<seanjc@google.com>
Fri, 20 Jun 2025 20:05:40 +0000
(13:05 -0700)
Tag init_msrpm_offsets() and add_msr_offset() with __init, as they're used
only during hardware setup to map potential passthrough MSRs to offsets in
the bitmap.
Reviewed-by: Chao Gao <chao.gao@intel.com>
Link:
https://lore.kernel.org/r/20250610225737.156318-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kvm/svm/svm.c
b/arch/x86/kvm/svm/svm.c
index 29c90b90bc32f496e45e46a963134d4da37c3ef5..127b54c1bbaf52931584bb013b2e4701192f2311 100644
(file)
--- a/
arch/x86/kvm/svm/svm.c
+++ b/
arch/x86/kvm/svm/svm.c
@@
-939,7
+939,7
@@
static void svm_msr_filter_changed(struct kvm_vcpu *vcpu)
}
}
-static int add_msr_offset(u32 offset)
+static
__init
int add_msr_offset(u32 offset)
{
int i;
@@
-962,7
+962,7
@@
static int add_msr_offset(u32 offset)
return -ENOSPC;
}
-static int init_msrpm_offsets(void)
+static
__init
int init_msrpm_offsets(void)
{
int i;