From: Jiang Biao Date: Mon, 7 Nov 2016 00:54:51 +0000 (+0800) Subject: kvm: x86: make a function in x86.c static to avoid compiling warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ae6a237560dccd1d2e3191b7365bc19ae654ff91;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 83990ad3710e..7eb099222c50 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;