From: Miaohe Lin <linmiaohe@huawei.com>
Date: Wed, 5 Feb 2020 15:33:53 +0000 (+0800)
Subject: KVM: vmx: delete meaningless vmx_decache_cr0_guest_bits() declaration
X-Git-Tag: v5.6-rc1~39^2
X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a8be1ad01b795bd2a13297ddbaecdb956ab0efd0;p=users%2Fjedix%2Flinux-maple.git

KVM: vmx: delete meaningless vmx_decache_cr0_guest_bits() declaration

The function vmx_decache_cr0_guest_bits() is only called below its
implementation. So this is meaningless and should be removed.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---

diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c
index ba334acaa37e..9a6664886f2e 100644
--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -1428,8 +1428,6 @@ static bool emulation_required(struct kvm_vcpu *vcpu)
 	return emulate_invalid_guest_state && !guest_state_valid(vcpu);
 }
 
-static void vmx_decache_cr0_guest_bits(struct kvm_vcpu *vcpu);
-
 unsigned long vmx_get_rflags(struct kvm_vcpu *vcpu)
 {
 	struct vcpu_vmx *vmx = to_vmx(vcpu);