summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:54:13 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:48:29 +0900
commit65e3849ec757c8764ef0549c8e494230155312d7 (patch)
treeecb7db02070a6759c5d21d6922759b056d750b26
parent032745204b45ef69ec382526bca206674d9d84de (diff)
vm/vm_kern.c: remove forward declarations
* vm/vm_kern.c (kmem_alloc_pages, kmem_remap_pages): Remove forward declarations. * vm/vm_kern.h (kmem_alloc_pages, kmem_remap_pages): Add prototypes.
-rw-r--r--vm/vm_kern.c3
-rw-r--r--vm/vm_kern.h14
2 files changed, 14 insertions, 3 deletions
diff --git a/vm/vm_kern.c b/vm/vm_kern.c
index ddbe555..7e377ef 100644
--- a/vm/vm_kern.c
+++ b/vm/vm_kern.c
@@ -62,9 +62,6 @@ static struct vm_map kernel_map_store;
vm_map_t kernel_map = &kernel_map_store;
vm_map_t kernel_pageable_map;
-extern void kmem_alloc_pages();
-extern void kmem_remap_pages();
-
/*
* projected_buffer_allocate
*
diff --git a/vm/vm_kern.h b/vm/vm_kern.h
index 22b7c12..0869217 100644
--- a/vm/vm_kern.h
+++ b/vm/vm_kern.h
@@ -82,4 +82,18 @@ extern boolean_t projected_buffer_in_range(
vm_offset_t start,
vm_offset_t end);
+extern void kmem_alloc_pages(
+ vm_object_t object,
+ vm_offset_t offset,
+ vm_offset_t start,
+ vm_offset_t end,
+ vm_prot_t protection);
+
+extern void kmem_remap_pages(
+ vm_object_t object,
+ vm_offset_t offset,
+ vm_offset_t start,
+ vm_offset_t end,
+ vm_prot_t protection);
+
#endif /* _VM_VM_KERN_H_ */