From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: [PATCH 01/12] KVM: MMU: remove unused parameter Date: Thu, 29 Aug 2013 10:22:59 +0300 Message-ID: <20130829072259.GZ22899@redhat.com> References: <1375189330-24066-1-git-send-email-xiaoguangrong@linux.vnet.ibm.com> <1375189330-24066-2-git-send-email-xiaoguangrong@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: avi.kivity@gmail.com, mtosatti@redhat.com, pbonzini@redhat.com, linux-kernel@vger.kernel.org, kvm@vger.kernel.org To: Xiao Guangrong Return-path: Content-Disposition: inline In-Reply-To: <1375189330-24066-2-git-send-email-xiaoguangrong@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Tue, Jul 30, 2013 at 09:01:59PM +0800, Xiao Guangrong wrote: > =EF=BC=A0vcpu in page_fault_can_be_fast() is not used so remove it >=20 > Signed-off-by: Xiao Guangrong Applied this one. Thanks. > --- > arch/x86/kvm/mmu.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c > index 3a9493a..a731c0b 100644 > --- a/arch/x86/kvm/mmu.c > +++ b/arch/x86/kvm/mmu.c > @@ -2808,7 +2808,7 @@ exit: > return ret; > } > =20 > -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 > @@ -2861,7 +2861,7 @@ static bool fast_page_fault(struct kvm_vcpu *vc= pu, gva_t gva, int level, > bool ret =3D false; > u64 spte =3D 0ull; > =20 > - if (!page_fault_can_be_fast(vcpu, error_code)) > + if (!page_fault_can_be_fast(error_code)) > return false; > =20 > walk_shadow_page_lockless_begin(vcpu); > --=20 > 1.8.1.4 -- Gleb.