From 84e0fb3f287864eca3a9322ef364b913f6a260bd Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Sun, 25 Dec 2022 20:41:46 -0500 Subject: Fix some warnings with -Wmissing-prototypes. Marked some functions as static (private) as needed and added missing includes. This also revealed some dead code which was removed. Note that -Wmissing-prototypes is not enabled here since there is a bunch more warnings. Message-Id: --- ipc/ipc_kmsg.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'ipc/ipc_kmsg.c') diff --git a/ipc/ipc_kmsg.c b/ipc/ipc_kmsg.c index 1e00b355..73041703 100644 --- a/ipc/ipc_kmsg.c +++ b/ipc/ipc_kmsg.c @@ -217,7 +217,7 @@ ipc_kmsg_destroy( * No locks held. */ -void +static void ipc_kmsg_clean_body( vm_offset_t saddr, vm_offset_t eaddr) @@ -359,7 +359,7 @@ ipc_kmsg_clean(ipc_kmsg_t kmsg) * Nothing locked. */ -void +static void ipc_kmsg_clean_partial( ipc_kmsg_t kmsg, vm_offset_t eaddr, @@ -1292,7 +1292,7 @@ ipc_kmsg_copyin_header( return MACH_SEND_INVALID_REPLY; } -mach_msg_return_t +static mach_msg_return_t ipc_kmsg_copyin_body( ipc_kmsg_t kmsg, ipc_space_t space, @@ -2639,7 +2639,7 @@ ipc_kmsg_copyout_dest( #if MACH_KDB -char * +static char * ipc_type_name( int type_name, boolean_t received) @@ -2707,7 +2707,7 @@ ipc_type_name( } } -void +static void ipc_print_type_name( int type_name) { -- cgit v1.2.3