Thread (41 messages) flat view 41 messages, 6 authors, 2011-11-11

[PATCH v8 02/16] ARM: pgtable: Fix compiler warning in ioremap.c introduced by nopud

From: Russell King - ARM Linux <hidden>
Date: 2011-11-10 22:42:19
Also in: lkml

On Mon, Nov 07, 2011 at 04:16:44PM +0000, Catalin Marinas wrote:
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.
This should come before the nopud include, so that we don't introduce the
warnings in the first place.  The result should compile to the same code
with just this patch applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help