summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2016-09-20 20:43:34 +0200
committerRichard Braun <rbraun@sceen.net>2016-09-20 20:43:34 +0200
commit8322083864500f5726f4f04f80427acee4b52c9a (patch)
tree0da982d2f30c66af51f58a72792f5321d1e7a7b3
parentc78fe96446794f71a2db7d7e3d43cb15658590a3 (diff)
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.
-rw-r--r--vm/vm_page.h23
1 files changed, 0 insertions, 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.
*/