From 8015e7817b505d15845c33f13c24ad55c561c8df Mon Sep 17 00:00:00 2001 From: David Höppner <0xffea@gmail.com> Date: Tue, 1 Jan 2013 09:12:37 +0000 Subject: 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. --- ipc/ipc_object.c | 5 +++++ ipc/ipc_port.c | 3 +++ ipc/ipc_pset.c | 4 ++++ 3 files changed, 12 insertions(+) (limited to 'ipc') diff --git a/ipc/ipc_object.c b/ipc/ipc_object.c index 4850fb10..b8cae8f5 100644 --- a/ipc/ipc_object.c +++ b/ipc/ipc_object.c @@ -49,6 +49,11 @@ #include #include +#if MACH_KDB +#include +#endif /* MACH_KDB */ + + struct kmem_cache ipc_object_caches[IOT_NUMBER]; diff --git a/ipc/ipc_port.c b/ipc/ipc_port.c index ce0dbeb4..8e41c3ca 100644 --- a/ipc/ipc_port.c +++ b/ipc/ipc_port.c @@ -51,6 +51,9 @@ #include #include +#if MACH_KDB +#include +#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 141cbdb8..e2b3c862 100644 --- a/ipc/ipc_pset.c +++ b/ipc/ipc_pset.c @@ -46,6 +46,10 @@ #include #include +#if MACH_KDB +#include +#endif /* MACH_KDB */ + /* * Routine: ipc_pset_alloc -- cgit v1.2.3