From ca77b555c0aafa3070fbb67592abaaa1b8d31913 Mon Sep 17 00:00:00 2001 From: Jeff Dike Date: Mon, 4 Feb 2008 22:30:55 -0800 Subject: uml: add virt_to_pte Turn um_virt_to_phys into virt_to_pte, cleaning up a horrid interface. It's also made non-static and declared in pgtable.h because it'll be needed when the stubs get a vma. Signed-off-by: Jeff Dike Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- include/asm-um/pgtable.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/asm-um') diff --git a/include/asm-um/pgtable.h b/include/asm-um/pgtable.h index 62ab94a4f1b6..fb477774a2e9 100644 --- a/include/asm-um/pgtable.h +++ b/include/asm-um/pgtable.h @@ -323,6 +323,9 @@ static inline pte_t pte_modify(pte_t pte, pgprot_t newprot) #define pte_unmap(pte) do { } while (0) #define pte_unmap_nested(pte) do { } while (0) +struct mm_struct; +extern pte_t *virt_to_pte(struct mm_struct *mm, unsigned long addr); + #define update_mmu_cache(vma,address,pte) do ; while (0) /* Encode and de-code a swap entry */ -- cgit v1.2.3