diff options
Diffstat (limited to 'kernel/arch/metag/mm')
-rw-r--r-- | kernel/arch/metag/mm/highmem.c | 14 | ||||
-rw-r--r-- | kernel/arch/metag/mm/hugetlbpage.c | 5 |
2 files changed, 0 insertions, 19 deletions
diff --git a/kernel/arch/metag/mm/highmem.c b/kernel/arch/metag/mm/highmem.c index 807f1b1c4..f19a87f2c 100644 --- a/kernel/arch/metag/mm/highmem.c +++ b/kernel/arch/metag/mm/highmem.c @@ -111,20 +111,6 @@ void *kmap_atomic_pfn(unsigned long pfn) return (void *)vaddr; } -struct page *kmap_atomic_to_page(void *ptr) -{ - unsigned long vaddr = (unsigned long)ptr; - int idx; - pte_t *pte; - - if (vaddr < FIXADDR_START) - return virt_to_page(ptr); - - idx = virt_to_fix(vaddr); - pte = kmap_pte - (idx - FIX_KMAP_BEGIN); - return pte_page(*pte); -} - void __init kmap_init(void) { unsigned long kmap_vstart; diff --git a/kernel/arch/metag/mm/hugetlbpage.c b/kernel/arch/metag/mm/hugetlbpage.c index 7ca80ac42..53f0f6c47 100644 --- a/kernel/arch/metag/mm/hugetlbpage.c +++ b/kernel/arch/metag/mm/hugetlbpage.c @@ -89,11 +89,6 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr) return pte; } -int huge_pmd_unshare(struct mm_struct *mm, unsigned long *addr, pte_t *ptep) -{ - return 0; -} - int pmd_huge(pmd_t pmd) { return pmd_page_shift(pmd) > PAGE_SHIFT; |