]> 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>
Tue, 22 Nov 2011 17:30:27 +0000 (17:30 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 22 Nov 2011 17:30:27 +0000 (17:30 +0000)
commit7a83c16cb6c49ce4b9ee36faaaeff7fe8108fcb6
tree53990e4e0e7ab6660bdd4292d6c3f5a46a8302e0
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37
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