[PATCH] powerpc: replace page_to_virt() with lowmem_page_address() for Book-E
authorKumar Gala <galak@gate.crashing.org>
Tue, 15 Nov 2005 17:03:24 +0000 (11:03 -0600)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Nov 2005 02:52:12 +0000 (13:52 +1100)
page_to_virt and lowmem_page_address provided equiavlent functionality
so use the more standard lowmem_page_address

This also addresses build issue in ARCH=powerpc since page_to_virt()
has been removed from include/asm-powerpc/page.h

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
include/asm-ppc/pgalloc.h

index 931b6de7ef536aa6688ffffc1884fecbe6be62dc..bdefd1c4a5581b5a4317587bd2377e075ea7ed81 100644 (file)
@@ -28,7 +28,7 @@ extern void pgd_free(pgd_t *pgd);
 #define pmd_populate_kernel(mm, pmd, pte)      \
                (pmd_val(*(pmd)) = (unsigned long)pte | _PMD_PRESENT)
 #define pmd_populate(mm, pmd, pte)     \
-               (pmd_val(*(pmd)) = (unsigned long)page_to_virt(pte) | _PMD_PRESENT)
+               (pmd_val(*(pmd)) = (unsigned long)lowmem_page_address(pte) | _PMD_PRESENT)
 #endif
 
 extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr);