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/ds_routines.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'device/ds_routines.c') diff --git a/device/ds_routines.c b/device/ds_routines.c index ba233a91..11589d63 100644 --- a/device/ds_routines.c +++ b/device/ds_routines.c @@ -1680,7 +1680,7 @@ mach_device_trap_init(void) * Could have lists of different size caches. * Could call a device-specific routine. */ -io_req_t +static io_req_t ds_trap_req_alloc(const mach_device_t device, vm_size_t data_size) { return (io_req_t) kmem_cache_alloc(&io_trap_cache); @@ -1689,7 +1689,7 @@ ds_trap_req_alloc(const mach_device_t device, vm_size_t data_size) /* * Called by iodone to release ior. */ -boolean_t +static boolean_t ds_trap_write_done(const io_req_t ior) { mach_device_t dev; -- cgit v1.2.3