powerpc/mm: Change setbat() to take a pgprot_t rather than flags
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 25 Mar 2015 09:11:55 +0000 (20:11 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 7 Apr 2015 07:15:13 +0000 (17:15 +1000)
commit5dd4e4f6fe9495f02d4594bd460b84008a3e8e93
tree5a1d671fc5d6d27ffc340aad7705c5fe848b2355
parent911083350e010e23719a8ecb4dd5f170f22854eb
powerpc/mm: Change setbat() to take a pgprot_t rather than flags

The callers of setbat() are actually passing a pgprot_t for the flags
parameter. This doesn't matter unless STRICT_MM_TYPECHECKS is enabled.
So we can turn that on without breaking the build, change setbat() to
take a pgprot_t and have it convert it to an unsigned long internally.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/mmu_decl.h
arch/powerpc/mm/ppc_mmu_32.c