summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorJiang Biao <jiang.biao2@zte.com.cn>2016-11-07 08:54:51 +0800
committerRadim Krčmář <rkrcmar@redhat.com>2016-11-16 22:09:44 +0100
commitae6a237560dccd1d2e3191b7365bc19ae654ff91 (patch)
tree0787ca750dedd3d23b5a05adf54a2352a1a95b3a /arch/x86/kvm/x86.c
parent33365e7a454fd40d30d11bf0d9147e059b22e099 (diff)
downloadop-kernel-dev-ae6a237560dccd1d2e3191b7365bc19ae654ff91.zip
op-kernel-dev-ae6a237560dccd1d2e3191b7365bc19ae654ff91.tar.gz
kvm: x86: make a function in x86.c static to avoid compiling warning
kvm_emulate_wbinvd_noskip is only used in x86.c, and should be static to avoid compiling warning when with -Wmissing-prototypes option. Signed-off-by: Jiang Biao <jiang.biao2@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 83990ad..7eb0992 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4795,7 +4795,7 @@ static void emulator_invlpg(struct x86_emulate_ctxt *ctxt, ulong address)
kvm_mmu_invlpg(emul_to_vcpu(ctxt), address);
}
-int kvm_emulate_wbinvd_noskip(struct kvm_vcpu *vcpu)
+static int kvm_emulate_wbinvd_noskip(struct kvm_vcpu *vcpu)
{
if (!need_emulate_wbinvd(vcpu))
return X86EMUL_CONTINUE;
OpenPOWER on IntegriCloud