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: --- device/net_io.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'device/net_io.c') diff --git a/device/net_io.c b/device/net_io.c index 338b433c..4392f711 100644 --- a/device/net_io.c +++ b/device/net_io.c @@ -235,7 +235,7 @@ net_kmsg_collect(void) (void) splx(s); } -void +static void net_kmsg_more(void) { ipc_kmsg_t kmsg; @@ -412,7 +412,7 @@ mach_msg_type_t packet_type = { * Dequeues a message and delivers it at spl0. * Returns FALSE if no messages. */ -boolean_t net_deliver(boolean_t nonblocking) +static boolean_t net_deliver(boolean_t nonblocking) { ipc_kmsg_t kmsg; boolean_t high_priority; @@ -549,7 +549,7 @@ void net_ast(void) (void) splx(s); } -void __attribute__ ((noreturn)) net_thread_continue(void) +static void __attribute__ ((noreturn)) net_thread_continue(void) { for (;;) { spl_t s; @@ -602,7 +602,7 @@ void net_thread(void) /*NOTREACHED*/ } -void +static void reorder_queue( queue_t first, queue_t last) @@ -1010,7 +1010,7 @@ net_do_filter(infp, data, data_count, header) /* * Check filter for invalid operations or stack over/under-flow. */ -boolean_t +static boolean_t parse_net_filter( filter_t *filter, unsigned int count) @@ -2100,7 +2100,7 @@ net_add_q_info(ipc_port_t rcv_port) return (int)qlimit; } -void +static void net_del_q_info(int qlimit) { simple_lock(&net_kmsg_total_lock); -- cgit v1.2.3