summaryrefslogtreecommitdiffstats
path: root/arch/um/include/asm/pgtable-2level.h
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2015-02-10 23:11:17 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2015-02-10 23:30:33 +0100
commit3513006a5691ae3629eef9ddef0b71a47c40dfbc (patch)
tree842e082df23e47958dbfa1bf3de51dde16dbc250 /arch/um/include/asm/pgtable-2level.h
parenttile: drop pte_file()-related helpers (diff)
downloadlinux-3513006a5691ae3629eef9ddef0b71a47c40dfbc.tar.xz
linux-3513006a5691ae3629eef9ddef0b71a47c40dfbc.zip
um: drop _PAGE_FILE and pte_file()-related helpers
We've replaced remap_file_pages(2) implementation with emulation. Nobody creates non-linear mapping anymore. Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Cc: Jeff Dike <jdike@addtoit.com> Cc: Richard Weinberger <richard@nod.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/include/asm/pgtable-2level.h')
-rw-r--r--arch/um/include/asm/pgtable-2level.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/arch/um/include/asm/pgtable-2level.h b/arch/um/include/asm/pgtable-2level.h
index f534b73e753e..7afe86035fa7 100644
--- a/arch/um/include/asm/pgtable-2level.h
+++ b/arch/um/include/asm/pgtable-2level.h
@@ -41,13 +41,4 @@ static inline void pgd_mkuptodate(pgd_t pgd) { }
#define pfn_pte(pfn, prot) __pte(pfn_to_phys(pfn) | pgprot_val(prot))
#define pfn_pmd(pfn, prot) __pmd(pfn_to_phys(pfn) | pgprot_val(prot))
-/*
- * Bits 0 through 4 are taken
- */
-#define PTE_FILE_MAX_BITS 27
-
-#define pte_to_pgoff(pte) (pte_val(pte) >> 5)
-
-#define pgoff_to_pte(off) ((pte_t) { ((off) << 5) + _PAGE_FILE })
-
#endif