From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Hogan Subject: Re: [PATCH v3 4/9] MIPS: KVM: Remove unneeded volatile Date: Wed, 25 Jun 2014 10:09:56 +0100 Message-ID: <53AA91E4.3090605@imgtec.com> References: <1403631071-6012-1-git-send-email-dengcheng.zhu@imgtec.com> <1403631071-6012-5-git-send-email-dengcheng.zhu@imgtec.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: , , , , To: Deng-Cheng Zhu , Return-path: Received: from mailapp01.imgtec.com ([195.59.15.196]:14321 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932146AbaFYJJ7 (ORCPT ); Wed, 25 Jun 2014 05:09:59 -0400 In-Reply-To: <1403631071-6012-5-git-send-email-dengcheng.zhu@imgtec.com> Sender: kvm-owner@vger.kernel.org List-ID: On 24/06/14 18:31, Deng-Cheng Zhu wrote: > From: Deng-Cheng Zhu > > The keyword volatile for idx in the TLB functions is unnecessary. > > Signed-off-by: Deng-Cheng Zhu Reviewed-by: James Hogan Cheers James > --- > arch/mips/kvm/kvm_tlb.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/mips/kvm/kvm_tlb.c b/arch/mips/kvm/kvm_tlb.c > index 29a5bdb..bbcd822 100644 > --- a/arch/mips/kvm/kvm_tlb.c > +++ b/arch/mips/kvm/kvm_tlb.c > @@ -201,7 +201,7 @@ int kvm_mips_host_tlb_write(struct kvm_vcpu *vcpu, unsigned long entryhi, > { > unsigned long flags; > unsigned long old_entryhi; > - volatile int idx; > + int idx; > > local_irq_save(flags); > > @@ -426,7 +426,7 @@ EXPORT_SYMBOL(kvm_mips_guest_tlb_lookup); > int kvm_mips_host_tlb_lookup(struct kvm_vcpu *vcpu, unsigned long vaddr) > { > unsigned long old_entryhi, flags; > - volatile int idx; > + int idx; > > local_irq_save(flags); > >