From: Xiao Guangrong Date: Tue, 30 Jul 2013 13:01:59 +0000 (+0800) Subject: KVM: MMU: remove unused parameter X-Git-Tag: upstream/snapshot3+hdmi~4433^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e5552fd252763c74ce6a6c27c7873939062b5038;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git KVM: MMU: remove unused parameter vcpu in page_fault_can_be_fast() is not used so remove it Signed-off-by: Xiao Guangrong Signed-off-by: Gleb Natapov --- diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9651c99..6e2d2c8 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -2781,7 +2781,7 @@ exit: return ret; } -static bool page_fault_can_be_fast(struct kvm_vcpu *vcpu, u32 error_code) +static bool page_fault_can_be_fast(u32 error_code) { /* * Do not fix the mmio spte with invalid generation number which @@ -2834,7 +2834,7 @@ static bool fast_page_fault(struct kvm_vcpu *vcpu, gva_t gva, int level, bool ret = false; u64 spte = 0ull; - if (!page_fault_can_be_fast(vcpu, error_code)) + if (!page_fault_can_be_fast(error_code)) return false; walk_shadow_page_lockless_begin(vcpu);