diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-10-12 13:54:24 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-13 19:35:27 -0400 |
commit | f5ea64dcbad89875d130596df14c9b25d994a737 (patch) | |
tree | 03bde08104ea5c29edcaafc11576eb5594a7426c /arch/powerpc/mm/init_64.c | |
parent | cd301c7ba4bbb5a0ee6ebf13eb4a304f29b13847 (diff) |
powerpc: Get USE_STRICT_MM_TYPECHECKS working again
The typesafe version of the powerpc pagetable handling (with
USE_STRICT_MM_TYPECHECKS defined) has bitrotted again. This patch
makes a bunch of small fixes to get it back to building status.
It's still not enabled by default as gcc still generates worse
code with it for some reason.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/init_64.c')
-rw-r--r-- | arch/powerpc/mm/init_64.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/init_64.c b/arch/powerpc/mm/init_64.c index 036fe2f10c77..3e6a6543f53a 100644 --- a/arch/powerpc/mm/init_64.c +++ b/arch/powerpc/mm/init_64.c | |||
@@ -228,8 +228,8 @@ int __meminit vmemmap_populate(struct page *start_page, | |||
228 | start, p, __pa(p)); | 228 | start, p, __pa(p)); |
229 | 229 | ||
230 | mapped = htab_bolt_mapping(start, start + page_size, __pa(p), | 230 | mapped = htab_bolt_mapping(start, start + page_size, __pa(p), |
231 | PAGE_KERNEL, mmu_vmemmap_psize, | 231 | pgprot_val(PAGE_KERNEL), |
232 | mmu_kernel_ssize); | 232 | mmu_vmemmap_psize, mmu_kernel_ssize); |
233 | BUG_ON(mapped < 0); | 233 | BUG_ON(mapped < 0); |
234 | } | 234 | } |
235 | 235 | ||