summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/mmu_decl.h
diff options
context:
space:
mode:
authorMichael Ellerman2015-03-25 10:11:55 +0100
committerMichael Ellerman2015-04-07 09:15:13 +0200
commit5dd4e4f6fe9495f02d4594bd460b84008a3e8e93 (patch)
tree5a1d671fc5d6d27ffc340aad7705c5fe848b2355 /arch/powerpc/mm/mmu_decl.h
parentpowerpc/mm: Remove duplicate declaration of setbat() (diff)
downloadkernel-qcow2-linux-5dd4e4f6fe9495f02d4594bd460b84008a3e8e93.tar.gz
kernel-qcow2-linux-5dd4e4f6fe9495f02d4594bd460b84008a3e8e93.tar.xz
kernel-qcow2-linux-5dd4e4f6fe9495f02d4594bd460b84008a3e8e93.zip
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>
Diffstat (limited to 'arch/powerpc/mm/mmu_decl.h')
-rw-r--r--arch/powerpc/mm/mmu_decl.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/mmu_decl.h b/arch/powerpc/mm/mmu_decl.h
index 78c45f392f5b..085b66b10891 100644
--- a/arch/powerpc/mm/mmu_decl.h
+++ b/arch/powerpc/mm/mmu_decl.h
@@ -96,7 +96,7 @@ extern void _tlbia(void);
extern void mapin_ram(void);
extern int map_page(unsigned long va, phys_addr_t pa, int flags);
extern void setbat(int index, unsigned long virt, phys_addr_t phys,
- unsigned int size, int flags);
+ unsigned int size, pgprot_t prot);
extern int __map_without_bats;
extern int __allow_ioremap_reserved;