diff options
Diffstat (limited to 'kernel/arch/powerpc/include/asm/highmem.h')
-rw-r--r-- | kernel/arch/powerpc/include/asm/highmem.h | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/kernel/arch/powerpc/include/asm/highmem.h b/kernel/arch/powerpc/include/asm/highmem.h index caaf6e006..01c2c23b3 100644 --- a/kernel/arch/powerpc/include/asm/highmem.h +++ b/kernel/arch/powerpc/include/asm/highmem.h @@ -84,19 +84,6 @@ static inline void *kmap_atomic(struct page *page) return kmap_atomic_prot(page, kmap_prot); } -static inline struct page *kmap_atomic_to_page(void *ptr) -{ - unsigned long idx, vaddr = (unsigned long) ptr; - 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); -} - #define flush_cache_kmaps() flush_cache_all() |