aboutsummaryrefslogtreecommitdiff
path: root/arch/um/include/asm/pgtable-2level.h
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2015-02-10 14:11:17 -0800
committerLinus Torvalds <[email protected]>2015-02-10 14:30:33 -0800
commit3513006a5691ae3629eef9ddef0b71a47c40dfbc (patch)
tree842e082df23e47958dbfa1bf3de51dde16dbc250 /arch/um/include/asm/pgtable-2level.h
parenteb12f4872a3845a8803f689646dea5b92a30aff7 (diff)
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 <[email protected]> Cc: Jeff Dike <[email protected]> Cc: Richard Weinberger <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
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