From 8322083864500f5726f4f04f80427acee4b52c9a Mon Sep 17 00:00:00 2001 From: Richard Braun Date: Tue, 20 Sep 2016 20:43:34 +0200 Subject: VM: remove commented out code The vm_page_direct_va, vm_page_direct_pa and vm_page_direct_ptr functions were imported along with the new vm_page module, but never actually used since the kernel already has phystokv and kvtophys functions. --- vm/vm_page.h | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/vm/vm_page.h b/vm/vm_page.h index dc5d5c3a..f9682367 100644 --- a/vm/vm_page.h +++ b/vm/vm_page.h @@ -401,29 +401,6 @@ vm_page_to_pa(const struct vm_page *page) return page->phys_addr; } -#if 0 -static inline unsigned long -vm_page_direct_va(phys_addr_t pa) -{ - assert(pa < VM_PAGE_DIRECTMAP_LIMIT); - return ((unsigned long)pa + VM_MIN_DIRECTMAP_ADDRESS); -} - -static inline phys_addr_t -vm_page_direct_pa(unsigned long va) -{ - assert(va >= VM_MIN_DIRECTMAP_ADDRESS); - assert(va < VM_MAX_DIRECTMAP_ADDRESS); - return (va - VM_MIN_DIRECTMAP_ADDRESS); -} - -static inline void * -vm_page_direct_ptr(const struct vm_page *page) -{ - return (void *)vm_page_direct_va(vm_page_to_pa(page)); -} -#endif - /* * Associate private data with a page. */ -- cgit v1.2.3