KVM: VMX: Make loaded_vmcs_clear() static in vmx.c
Sean Christopherson
maintainerPATCH 1/1 KVM: VMX: Make loaded_vmcs_clear() static in vmx.c
Make loaded_vmcs_clear() local to vmx.c as there are no longer any external callers.
No functional change intended.
Signed-off-by Sean Christopherson <[email protected]>
--- arch/x86/kvm/vmx/vmx.c | 2 +- arch/x86/kvm/vmx/vmx.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-)
arch/x86/kvm/vmx/vmx.c +1 -1
@@ -752,7 +752,7 @@ static void __loaded_vmcs_clear(void *arg) loaded_vmcs->launched =0 ; } -void loaded_vmcs_clear (struct loaded_vmcs *loaded_vmcs) +static void loaded_vmcs_clear (struct loaded_vmcs *loaded_vmcs) {int cpu = loaded_vmcs->cpu;
arch/x86/kvm/vmx/vmx.h +0 -1
@@ -680,7 +680,6 @@ struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags);void free_vmcs (struct vmcs *vmcs);int alloc_loaded_vmcs (struct loaded_vmcs *loaded_vmcs);void free_loaded_vmcs (struct loaded_vmcs *loaded_vmcs); -void loaded_vmcs_clear (struct loaded_vmcs *loaded_vmcs);static inline struct vmcs *alloc_vmcs (bool shadow) {
base-commit: 31cb6bb71b1a1d92f8de6f396a9d12db6742e504
Signature · 1 line
2.51.2.1041.gc1ab5b90ca-goog
Quoted 4 lines · Sean Christopherson
Make
loaded_vmcs_clear()local tovmx.cas there are no longer any external callers.No functional change intended.
Applied to kvm-x86 vmx, thanks!
[1/1] KVM: VMX: Make loaded_vmcs_clear() static in vmx.c
https://github.com/kvm-x86/linux/commit/dfd1572a64c9