]> git.baikalelectronics.ru Git - kernel.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>
Thu, 8 Dec 2011 10:30:36 +0000 (10:30 +0000)
commit1c12cc337afef4d514a5b841183f3fb175c033e3
tree9d64db13ff38f31b50a69f2169828c34ac6a3b21
parent7c13a8d0f3d964327410d5c69e07eec99bc62e9f
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