]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: pgtable: Fix compiler warning in ioremap.c introduced by nopud
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 8 Aug 2011 16:47:42 +0000 (17:47 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 14 Nov 2011 14:11:15 +0000 (14:11 +0000)
commit0473666c7954040b0f72e2ef5f8b9fa3272440e0
treeec706ff91af52f7d72bf1777dc087c75eb4b4ce6
parent1ea6b8f48918282bdca0b32a34095504ee65bab5
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