diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2008-10-20 13:55:29 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2008-10-21 20:00:26 -0400 |
commit | 201bdc868d9e3122bbe4491aa6b5fc4dee4cdb96 (patch) | |
tree | 7952fb922b30090caa045011fd2da5540e5548b9 | |
parent | 8873d93b4bf0bd270c3fc7e178211633e7a1d5e8 (diff) |
powerpc: Further compile fixup for STRICT_MM_TYPECHECKS
A patch of mine was recently committed to fix up STRICT_MM_TYPECHECKS
behaviour on powerpc (f5ea64dcbad89875d130596df14c9b25d994a737).
However, something which breaks it again seems to have slipped in
afterwards. So, here's another small fix.
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | arch/powerpc/kernel/pci-common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/kernel/pci-common.c b/arch/powerpc/kernel/pci-common.c index 3815d84a1ef4..1ec73938a00f 100644 --- a/arch/powerpc/kernel/pci-common.c +++ b/arch/powerpc/kernel/pci-common.c | |||
@@ -610,7 +610,8 @@ int pci_mmap_legacy_page_range(struct pci_bus *bus, | |||
610 | pr_debug(" -> mapping phys %llx\n", (unsigned long long)offset); | 610 | pr_debug(" -> mapping phys %llx\n", (unsigned long long)offset); |
611 | 611 | ||
612 | vma->vm_pgoff = offset >> PAGE_SHIFT; | 612 | vma->vm_pgoff = offset >> PAGE_SHIFT; |
613 | vma->vm_page_prot |= _PAGE_NO_CACHE | _PAGE_GUARDED; | 613 | vma->vm_page_prot = __pgprot(pgprot_val(vma->vm_page_prot) |
614 | | _PAGE_NO_CACHE | _PAGE_GUARDED); | ||
614 | return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, | 615 | return remap_pfn_range(vma, vma->vm_start, vma->vm_pgoff, |
615 | vma->vm_end - vma->vm_start, | 616 | vma->vm_end - vma->vm_start, |
616 | vma->vm_page_prot); | 617 | vma->vm_page_prot); |