bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 2/7] vm: move forward declarations into a header file


From: Marin Ramesa
Subject: [PATCH 2/7] vm: move forward declarations into a header file
Date: Sat, 23 Nov 2013 15:29:25 +0100

* vm/vm_map.c (vm_map_delete, vm_map_copyout_page_list, 
vm_map_copy_page_discard, vm_map_lookup_entry): Remove forward declarations.
* vm/vm_map.h (vm_map_delete, vm_map_copyout_page_list, 
vm_map_copy_page_discard, vm_map_lookup_entry): Add prototypes.

---
 vm/vm_map.c | 16 ----------------
 vm/vm_map.h | 17 +++++++++++++++++
 2 files changed, 17 insertions(+), 16 deletions(-)

diff --git a/vm/vm_map.c b/vm/vm_map.c
index ce1ab23..6e4544a 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -58,20 +58,6 @@
 #include <vm/vm_print.h>
 #endif /* MACH_KDB */
 
-
-/* Forward declarations */
-kern_return_t vm_map_delete(
-    vm_map_t   map,
-    vm_offset_t    start,
-    vm_offset_t    end);
-
-kern_return_t vm_map_copyout_page_list(
-    vm_map_t    dst_map,
-    vm_offset_t *dst_addr,  /* OUT */
-    vm_map_copy_t   copy);
-
-void vm_map_copy_page_discard (vm_map_copy_t copy);
-
 /*
  * Macros to copy a vm_map_entry. We must be careful to correctly
  * manage the wired page count. vm_map_entry_copy() creates a new
@@ -143,8 +129,6 @@ struct kmem_cache    vm_map_entry_cache;    /* cache for 
vm_map_entry structures */
 struct kmem_cache    vm_map_kentry_cache;      /* cache for kernel entry 
structures */
 struct kmem_cache    vm_map_copy_cache;        /* cache for vm_map_copy 
structures */
 
-boolean_t      vm_map_lookup_entry();  /* forward declaration */
-
 /*
  *     Placeholder object for submap operations.  This object is dropped
  *     into the range by a call to vm_map_find, and removed when
diff --git a/vm/vm_map.h b/vm/vm_map.h
index 1caf9ae..641e602 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -437,6 +437,23 @@ extern kern_return_t       
vm_map_machine_attribute(vm_map_t, vm_offset_t,
 /* Delete entry from map */
 extern void            vm_map_entry_delete(vm_map_t, vm_map_entry_t);
 
+kern_return_t vm_map_delete(
+    vm_map_t           map,
+    vm_offset_t        start,
+    vm_offset_t        end);
+
+kern_return_t vm_map_copyout_page_list(
+    vm_map_t           dst_map,
+    vm_offset_t        *dst_addr,  /* OUT */
+    vm_map_copy_t      copy);
+
+void vm_map_copy_page_discard (vm_map_copy_t copy);
+
+boolean_t vm_map_lookup_entry(
+       vm_map_t        map,
+       vm_offset_t     address,
+       vm_map_entry_t  *entry); /* OUT */
+
 /*
  *     Functions implemented as macros
  */
-- 
1.8.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]