diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2014-01-30 18:38:33 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2014-03-03 02:15:25 +0100 |
commit | 56041bf920d2937b7cadcb30cb206f0372eee814 (patch) | |
tree | 0e65ada61e9411fdfcc2d693de724e4d863db263 /Documentation/parport-lowlevel.txt | |
parent | ARM: KVM: trap VM system registers until MMU and caches are ON (diff) | |
download | linux-56041bf920d2937b7cadcb30cb206f0372eee814.tar.xz linux-56041bf920d2937b7cadcb30cb206f0372eee814.zip |
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>
Diffstat (limited to 'Documentation/parport-lowlevel.txt')
0 files changed, 0 insertions, 0 deletions