summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorPeng Hao <peng.hao2@zte.com.cn>2018-04-02 09:15:32 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-04-04 19:10:29 +0200
commit3140c156e919b0f5fad5c5f6cf7876c39d1d4f06 (patch)
tree9fee15be1e0bdc7f3b836908dfcfdf0093cdf044 /arch/x86/kvm/x86.c
parent6c86eedc206dd1f9d37a2796faa8e6f2278215d2 (diff)
downloadop-kernel-dev-3140c156e919b0f5fad5c5f6cf7876c39d1d4f06.zip
op-kernel-dev-3140c156e919b0f5fad5c5f6cf7876c39d1d4f06.tar.gz
kvm: x86: fix a compile warning
fix a "warning: no previous prototype". Cc: stable@vger.kernel.org Signed-off-by: Peng Hao <peng.hao2@zte.com.cn> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 8f10813..b2ff74b 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -7943,7 +7943,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int idt_index,
}
EXPORT_SYMBOL_GPL(kvm_task_switch);
-int kvm_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
+static int kvm_valid_sregs(struct kvm_vcpu *vcpu, struct kvm_sregs *sregs)
{
if ((sregs->efer & EFER_LME) && (sregs->cr0 & X86_CR0_PG)) {
/*
OpenPOWER on IntegriCloud