summaryrefslogtreecommitdiff
path: root/vm
diff options
context:
space:
mode:
authorMarin Ramesa <mpr@hi.t-com.hr>2013-11-29 22:54:14 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-12-05 06:49:22 +0900
commit716beea2840054c8b64f5436379c949a9a43c6cc (patch)
tree36f68c9ee6bb406cefba161a13463edc2c689fc7 /vm
parent65e3849ec757c8764ef0549c8e494230155312d7 (diff)
vm/vm_map.c: remove forward declarations
* vm/vm_map.c (_vm_map_clip_start, _vm_map_copy_clip_start, _vm_map_clip_end, _vm_map_copy_clip_end): Remove forward declarations. * vm/vm_map.h (_vm_map_clip_end): Correct prototype.
Diffstat (limited to 'vm')
-rw-r--r--vm/vm_map.c4
-rw-r--r--vm/vm_map.h5
2 files changed, 4 insertions, 5 deletions
diff --git a/vm/vm_map.c b/vm/vm_map.c
index 6e4544a..914741e 100644
--- a/vm/vm_map.c
+++ b/vm/vm_map.c
@@ -1031,14 +1031,12 @@ kern_return_t vm_map_enter(
* the specified address; if necessary,
* it splits the entry into two.
*/
-void _vm_map_clip_start();
#define vm_map_clip_start(map, entry, startaddr) \
MACRO_BEGIN \
if ((startaddr) > (entry)->vme_start) \
_vm_map_clip_start(&(map)->hdr,(entry),(startaddr)); \
MACRO_END
-void _vm_map_copy_clip_start();
#define vm_map_copy_clip_start(copy, entry, startaddr) \
MACRO_BEGIN \
if ((startaddr) > (entry)->vme_start) \
@@ -1086,14 +1084,12 @@ void _vm_map_clip_start(map_header, entry, start)
* the specified address; if necessary,
* it splits the entry into two.
*/
-void _vm_map_clip_end();
#define vm_map_clip_end(map, entry, endaddr) \
MACRO_BEGIN \
if ((endaddr) < (entry)->vme_end) \
_vm_map_clip_end(&(map)->hdr,(entry),(endaddr)); \
MACRO_END
-void _vm_map_copy_clip_end();
#define vm_map_copy_clip_end(copy, entry, endaddr) \
MACRO_BEGIN \
if ((endaddr) < (entry)->vme_end) \
diff --git a/vm/vm_map.h b/vm/vm_map.h
index 19317ac..b6bc177 100644
--- a/vm/vm_map.h
+++ b/vm/vm_map.h
@@ -555,6 +555,9 @@ extern void _vm_map_clip_start(
* the specified address; if necessary,
* it splits the entry into two.
*/
-void _vm_map_clip_end();
+void _vm_map_clip_end(
+ struct vm_map_header *map_header,
+ vm_map_entry_t entry,
+ vm_offset_t end);
#endif /* _VM_VM_MAP_H_ */