summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorDavid Höppner <0xffea@gmail.com>2013-01-01 09:12:37 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2013-01-04 01:59:47 +0100
commit8015e7817b505d15845c33f13c24ad55c561c8df (patch)
treec8a14d93bec897994ccf1d7566ad3d48f2669e7b /ipc
parent14a29498dfee39e72443ff0e6f463be7f3bfd4ec (diff)
Fix compilation warning implicit function declaration kdbprintf
When kernel debugger support is requested ipc and vm need the prototype for the debugger function kdbprintf. * ddb/db_output.h: Add prototype for kdbprintf. * ipc/ipc_object.c: Add include file ddb/db_output.h * ipc/ipc_port.c: Likewise. * ipc/ipc_pset.c: Likewise. * vm/vm_map.c: Likewise. * vm/vm_object.c: Likewise. * vm/vm_resident.c: Likewise.
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_object.c5
-rw-r--r--ipc/ipc_port.c3
-rw-r--r--ipc/ipc_pset.c4
3 files changed, 12 insertions, 0 deletions
diff --git a/ipc/ipc_object.c b/ipc/ipc_object.c
index 4850fb1..b8cae8f 100644
--- a/ipc/ipc_object.c
+++ b/ipc/ipc_object.c
@@ -49,6 +49,11 @@
#include <kern/printf.h>
#include <kern/slab.h>
+#if MACH_KDB
+#include <ddb/db_output.h>
+#endif /* MACH_KDB */
+
+
struct kmem_cache ipc_object_caches[IOT_NUMBER];
diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c
index ce0dbeb..8e41c3c 100644
--- a/ipc/ipc_port.c
+++ b/ipc/ipc_port.c
@@ -51,6 +51,9 @@
#include <ipc/ipc_mqueue.h>
#include <ipc/ipc_notify.h>
+#if MACH_KDB
+#include <ddb/db_output.h>
+#endif /* MACH_KDB */
decl_simple_lock_data(, ipc_port_multiple_lock_data)
diff --git a/ipc/ipc_pset.c b/ipc/ipc_pset.c
index 141cbdb..e2b3c86 100644
--- a/ipc/ipc_pset.c
+++ b/ipc/ipc_pset.c
@@ -46,6 +46,10 @@
#include <ipc/ipc_right.h>
#include <ipc/ipc_space.h>
+#if MACH_KDB
+#include <ddb/db_output.h>
+#endif /* MACH_KDB */
+
/*
* Routine: ipc_pset_alloc