summaryrefslogtreecommitdiff
path: root/firmware/sb16
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2014-01-30 17:38:33 (GMT)
committerMatthew Weigel <Matthew.Weigel@freescale.com>2014-12-11 18:39:54 (GMT)
commit57fbe3856efe4b8d70d843ec39715586febf206f (patch)
treecde4b130f0bc2c97e07f38ca0cd2f9fccb9c0059 /firmware/sb16
parentc13343526fd608b105e3d8f9114841aa65c77ae5 (diff)
downloadlinux-fsl-qoriq-57fbe3856efe4b8d70d843ec39715586febf206f.tar.xz
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 <marc.zyngier@arm.com> Acked-by: Christoffer Dall <christoffer.dall@linaro.org> (cherry picked from commit 56041bf920d2937b7cadcb30cb206f0372eee814) Signed-off-by: Diana Craciun <Diana.Craciun@freescale.com> Change-Id: Ie4c704ea6441c405cd409cc6a2b1e833936a2df4 Reviewed-on: http://git.am.freescale.net:8181/22051 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Zhengxiong Jin <Jason.Jin@freescale.com>
Diffstat (limited to 'firmware/sb16')
0 files changed, 0 insertions, 0 deletions