Skip to content

Commit dfd1572

Browse files
committed
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. Link: https://patch.msgid.link/20251106205114.218226-1-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 32ed0bc commit dfd1572

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,7 @@ static void __loaded_vmcs_clear(void *arg)
752752
loaded_vmcs->launched = 0;
753753
}
754754

755-
void loaded_vmcs_clear(struct loaded_vmcs *loaded_vmcs)
755+
static void loaded_vmcs_clear(struct loaded_vmcs *loaded_vmcs)
756756
{
757757
int cpu = loaded_vmcs->cpu;
758758

arch/x86/kvm/vmx/vmx.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,6 @@ struct vmcs *alloc_vmcs_cpu(bool shadow, int cpu, gfp_t flags);
680680
void free_vmcs(struct vmcs *vmcs);
681681
int alloc_loaded_vmcs(struct loaded_vmcs *loaded_vmcs);
682682
void free_loaded_vmcs(struct loaded_vmcs *loaded_vmcs);
683-
void loaded_vmcs_clear(struct loaded_vmcs *loaded_vmcs);
684683

685684
static inline struct vmcs *alloc_vmcs(bool shadow)
686685
{

0 commit comments

Comments
 (0)