ARM: pgtable: Fix compiler warning in ioremap.c introduced by nopud
authorCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Nov 2011 17:30:27 +0000 (17:30 +0000)
committerGrazvydas Ignotas <notasas@gmail.com>
Wed, 20 Feb 2013 21:19:21 +0000 (23:19 +0200)
commit467e9cae1377200419f9129a83957df9f149a315
tree5774dd583c0d5304f250c07ea1e6c65af761651a
parenta53db61c2765eb7fdfc022d915c48faa5cae2d1d
ARM: pgtable: Fix compiler warning in ioremap.c introduced by nopud

With the arch/arm code conversion to pgtable-nopud.h, the section and
supersection (un|re)map code triggers compiler warnings on UP systems.
This is caused by pmd_offset() being given a pgd_t argument rather than
a pud_t one. This patch makes the necessary conversion with the
assumption that the pud is folded into the pgd. The page table setting
code only loops over the pmd which is enough with the classic page
tables. This code is not compiled when LPAE is enabled.

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/mm/ioremap.c