sparc32: drop unused kmap_atomic_to_page
authorSam Ravnborg <sam@ravnborg.org>
Thu, 26 Jul 2012 11:02:17 +0000 (11:02 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2012 23:46:15 +0000 (16:46 -0700)
No users left of this function - drop it.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/include/asm/highmem.h
arch/sparc/mm/highmem.c

index 3b6e00dd96e5360e888b8477ca5b132614426929..a31b2a1f0866a3b585e6e46b6cfdaa205af7fabd 100644 (file)
@@ -72,7 +72,6 @@ static inline void kunmap(struct page *page)
 
 extern void *kmap_atomic(struct page *page);
 extern void __kunmap_atomic(void *kvaddr);
-extern struct page *kmap_atomic_to_page(void *vaddr);
 
 #define flush_cache_kmaps()    flush_cache_all()
 
index 055c66cf1bf4454347ebd7b2b0d3a1cabadff047..856432a109d20883d96f5557d3ce9ffa9e797c15 100644 (file)
@@ -110,21 +110,3 @@ void __kunmap_atomic(void *kvaddr)
        pagefault_enable();
 }
 EXPORT_SYMBOL(__kunmap_atomic);
-
-/* We may be fed a pagetable here by ptep_to_xxx and others. */
-struct page *kmap_atomic_to_page(void *ptr)
-{
-       unsigned long idx, vaddr = (unsigned long)ptr;
-       pte_t *pte;
-
-       if (vaddr < SRMMU_NOCACHE_VADDR)
-               return virt_to_page(ptr);
-       if (vaddr < PKMAP_BASE)
-               return pfn_to_page(__nocache_pa(vaddr) >> PAGE_SHIFT);
-       BUG_ON(vaddr < FIXADDR_START);
-       BUG_ON(vaddr > FIXADDR_TOP);
-
-       idx = virt_to_fix(vaddr);
-       pte = kmap_pte - (idx - FIX_KMAP_BEGIN);
-       return pte_page(*pte);
-}