Skip to content
Commit 03a6b827 authored by Catalin Marinas's avatar Catalin Marinas
Browse files

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: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 4e8ee7de
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment