From 448889a4f0c32ba8ea61f870d4edcb0e0d58af85 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 20 Dec 2022 20:01:02 -0500 Subject: Use -Wstrict-prototypes and fix warnings Most of the changes include defining and using proper function type declarations (with argument types declared) and avoiding using the K&R style of function declarations. Message-Id: --- chips/busses.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'chips/busses.h') diff --git a/chips/busses.h b/chips/busses.h index f728add0..90eebc67 100644 --- a/chips/busses.h +++ b/chips/busses.h @@ -73,7 +73,7 @@ struct bus_ctlr { struct bus_driver *driver; /* myself, as a device */ char *name; /* readability */ int unit; /* index in driver */ - void (*intr)(); /* interrupt handler(s) */ + void (*intr)(int); /* interrupt handler(s) */ vm_offset_t address; /* device virtual address */ int am; /* address modifier */ vm_offset_t phys_address;/* device phys address */ @@ -93,7 +93,7 @@ struct bus_device { struct bus_driver *driver; /* autoconf info */ char *name; /* my name */ int unit; - void (*intr)(); + void (*intr)(int); vm_offset_t address; /* device address */ int am; /* address modifier */ vm_offset_t phys_address;/* device phys address */ @@ -131,7 +131,7 @@ struct bus_driver { vm_offset_t); void (*attach)( /* setup driver after probe */ struct bus_device *); - int (*dgo)(); /* start transfer */ + int (*dgo)(struct bus_device *); /* start transfer */ vm_offset_t *addr; /* device csr addresses */ char *dname; /* name of a device */ struct bus_device **dinfo; /* backpointers to init structs */ -- cgit v1.2.3