From mboxrd@z Thu Jan 1 00:00:00 1970 From: Deng-Cheng Zhu Subject: [PATCH v3 4/9] MIPS: KVM: Remove unneeded volatile Date: Tue, 24 Jun 2014 10:31:05 -0700 Message-ID: <1403631071-6012-5-git-send-email-dengcheng.zhu@imgtec.com> References: <1403631071-6012-1-git-send-email-dengcheng.zhu@imgtec.com> Mime-Version: 1.0 Content-Type: text/plain Cc: , , , , , , To: Return-path: Received: from mailapp01.imgtec.com ([195.59.15.196]:51221 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755505AbaFXRbg (ORCPT ); Tue, 24 Jun 2014 13:31:36 -0400 In-Reply-To: <1403631071-6012-1-git-send-email-dengcheng.zhu@imgtec.com> Sender: kvm-owner@vger.kernel.org List-ID: From: Deng-Cheng Zhu The keyword volatile for idx in the TLB functions is unnecessary. Signed-off-by: Deng-Cheng Zhu --- 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); -- 1.8.5.3