From: Marc Zyngier Date: Thu, 30 Jan 2014 17:38:33 +0000 (+0000) Subject: ARM: KVM: fix warning in mmu.c X-Git-Tag: v3.15-rc1~118^2~34^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56041bf920d2937b7cadcb30cb206f0372eee814;p=pandora-kernel.git ARM: KVM: fix warning in mmu.c Compiling with THP enabled leads to the following warning: arch/arm/kvm/mmu.c: In function ‘unmap_range’: arch/arm/kvm/mmu.c:177:39: warning: ‘pte’ may be used uninitialized in this function [-Wmaybe-uninitialized] if (kvm_pmd_huge(*pmd) || page_empty(pte)) { ^ Code inspection reveals that these two cases are mutually exclusive, so GCC is a bit overzealous here. Silence it anyway by initializing pte to NULL and testing it later on. Signed-off-by: Marc Zyngier Acked-by: Christoffer Dall --- Reading git-diff-tree failed