powerpc/mm: properly set PAGE_KERNEL flags in ioremap()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 9 Oct 2018 13:51:43 +0000 (13:51 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
commit56f3c1413f5cce0c8f4d6f1ab79d790da5aa61af
treea1ec8ea4a338d63d56353383ae49caad7b5b23dc
parentaa91796ec46339f2ed53da311bd3ea77a3e4dfe1
powerpc/mm: properly set PAGE_KERNEL flags in ioremap()

Set PAGE_KERNEL directly in the caller and do not rely on a
hack adding PAGE_KERNEL flags when _PAGE_PRESENT is not set.

As already done for PPC64, use pgprot_cache() helpers instead of
_PAGE_XXX flags in PPC32 ioremap() derived functions.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/nohash/pgtable.h
arch/powerpc/kernel/isa-bridge.c
arch/powerpc/kernel/pci_64.c
arch/powerpc/mm/pgtable_32.c
arch/powerpc/mm/pgtable_64.c
arch/powerpc/platforms/4xx/ocm.c
drivers/pcmcia/electra_cf.c