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, 6 Feb 2013 17:48:40 +0000 (19:48 +0200)
commit4705741f8597220ce6217b5e11bd4fa2a4877654
treedf1c2a4f2014160b54e01b437479a25601aa7b36
parenta653ee48b6bc531334858025a4cf04ba80b0f47d
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