summaryrefslogtreecommitdiff
path: root/ipc
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-12-25 20:41:46 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-12-27 00:00:50 +0100
commit84e0fb3f287864eca3a9322ef364b913f6a260bd (patch)
tree123333bce32a7d57c5112aa0d4c07b12821b6305 /ipc
parent63eefc08b5e762937118254ad0b82583cc38a2d2 (diff)
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: <Y6j72lWRL9rsYy4j@mars>
Diffstat (limited to 'ipc')
-rw-r--r--ipc/ipc_kmsg.c10
-rw-r--r--ipc/ipc_notify.c12
-rw-r--r--ipc/mach_port.c4
3 files changed, 13 insertions, 13 deletions
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)
{
diff --git a/ipc/ipc_notify.c b/ipc/ipc_notify.c
index 1fff8ead..eea60116 100644
--- a/ipc/ipc_notify.c
+++ b/ipc/ipc_notify.c
@@ -58,7 +58,7 @@ mach_dead_name_notification_t ipc_notify_dead_name_template;
* Initialize a template for port-deleted notifications.
*/
-void
+static void
ipc_notify_init_port_deleted(mach_port_deleted_notification_t *n)
{
mach_msg_header_t *m = &n->not_header;
@@ -88,7 +88,7 @@ ipc_notify_init_port_deleted(mach_port_deleted_notification_t *n)
* Initialize a template for msg-accepted notifications.
*/
-void
+static void
ipc_notify_init_msg_accepted(mach_msg_accepted_notification_t *n)
{
mach_msg_header_t *m = &n->not_header;
@@ -118,7 +118,7 @@ ipc_notify_init_msg_accepted(mach_msg_accepted_notification_t *n)
* Initialize a template for port-destroyed notifications.
*/
-void
+static void
ipc_notify_init_port_destroyed(mach_port_destroyed_notification_t *n)
{
mach_msg_header_t *m = &n->not_header;
@@ -149,7 +149,7 @@ ipc_notify_init_port_destroyed(mach_port_destroyed_notification_t *n)
* Initialize a template for no-senders notifications.
*/
-void
+static void
ipc_notify_init_no_senders(
mach_no_senders_notification_t *n)
{
@@ -180,7 +180,7 @@ ipc_notify_init_no_senders(
* Initialize a template for send-once notifications.
*/
-void
+static void
ipc_notify_init_send_once(
mach_send_once_notification_t *n)
{
@@ -200,7 +200,7 @@ ipc_notify_init_send_once(
* Initialize a template for dead-name notifications.
*/
-void
+static void
ipc_notify_init_dead_name(
mach_dead_name_notification_t *n)
{
diff --git a/ipc/mach_port.c b/ipc/mach_port.c
index db6e05dc..e5a5e978 100644
--- a/ipc/mach_port.c
+++ b/ipc/mach_port.c
@@ -69,7 +69,7 @@
* A helper function for mach_port_names.
*/
-void
+static void
mach_port_names_helper(
ipc_port_timestamp_t timestamp,
ipc_entry_t entry,
@@ -856,7 +856,7 @@ mach_port_set_seqno(
* A helper function for mach_port_get_set_status.
*/
-void
+static void
mach_port_gst_helper(
ipc_pset_t pset,
ipc_port_t port,