diff options
author | Michael Ellerman <mpe@ellerman.id.au> | 2015-03-25 10:11:57 +0100 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2015-04-10 12:02:47 +0200 |
commit | 4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239 (patch) | |
tree | 9592262236d4f0a520cb98e120bff69d4eb36e3d /arch/powerpc/mm/pgtable_32.c | |
parent | powerpc/mm: Change setbat() to take a pgprot_t rather than flags (diff) | |
download | linux-4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239.tar.xz linux-4f9c53c8cc76ed84e3bb0cca8c4ffa2b170d0239.zip |
powerpc: Fix compile errors with STRICT_MM_TYPECHECKS enabled
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Fix the 32-bit code also]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/pgtable_32.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c index 1bc1762f358d..70b4752af54f 100644 --- a/arch/powerpc/mm/pgtable_32.c +++ b/arch/powerpc/mm/pgtable_32.c @@ -189,7 +189,7 @@ __ioremap_caller(phys_addr_t addr, unsigned long size, unsigned long flags, /* Make sure we have the base flags */ if ((flags & _PAGE_PRESENT) == 0) - flags |= PAGE_KERNEL; + flags |= pgprot_val(PAGE_KERNEL); /* Non-cacheable page cannot be coherent */ if (flags & _PAGE_NO_CACHE) @@ -324,7 +324,7 @@ void __init __mapin_ram_chunk(unsigned long offset, unsigned long top) p = memstart_addr + s; for (; s < top; s += PAGE_SIZE) { ktext = ((char *) v >= _stext && (char *) v < etext); - f = ktext ? PAGE_KERNEL_TEXT : PAGE_KERNEL; + f = ktext ? pgprot_val(PAGE_KERNEL_TEXT) : pgprot_val(PAGE_KERNEL); map_page(v, p, f); #ifdef CONFIG_PPC_STD_MMU_32 if (ktext) |