diff options
author | Richard Lowe <richlowe@richlowe.net> | 2011-06-21 06:17:16 -0700 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2011-07-02 22:16:43 -0400 |
commit | be6a754b657c541efb48a1556fbf4a98798bd7a9 (patch) | |
tree | d2223f063f42ba75fe3a94df0e451773ec65dead /usr/src | |
parent | eabcbe0bd21b0b6b4b1dc0dd8481f2f86ecc336a (diff) | |
download | illumos-joyent-be6a754b657c541efb48a1556fbf4a98798bd7a9.tar.gz |
opl/drmach: Haul static prototypes out of functions
Function-local function prototypes may not be static, says GCC.
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/uts/sun4u/opl/io/drmach.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/usr/src/uts/sun4u/opl/io/drmach.c b/usr/src/uts/sun4u/opl/io/drmach.c index 3f40c0b732..98e4231090 100644 --- a/usr/src/uts/sun4u/opl/io/drmach.c +++ b/usr/src/uts/sun4u/opl/io/drmach.c @@ -229,6 +229,16 @@ static void drmach_fini(void); static void drmach_swap_pa(drmach_mem_t *, drmach_mem_t *); static drmach_board_t *drmach_get_board_by_bnum(int); +static sbd_error_t *drmach_board_release(drmachid_t); +static sbd_error_t *drmach_board_status(drmachid_t, drmach_status_t *); +static void drmach_cpu_dispose(drmachid_t); +static sbd_error_t *drmach_cpu_release(drmachid_t); +static sbd_error_t *drmach_cpu_status(drmachid_t, drmach_status_t *); +static void drmach_mem_dispose(drmachid_t); +static sbd_error_t *drmach_mem_release(drmachid_t); +static sbd_error_t *drmach_mem_status(drmachid_t, drmach_status_t *); + + /* options for the second argument in drmach_add_remove_cpu() */ #define HOTADD_CPU 1 #define HOTREMOVE_CPU 2 @@ -1021,9 +1031,6 @@ drmach_device_dispose(drmachid_t id) static drmach_board_t * drmach_board_new(int bnum, int boot_board) { - static sbd_error_t *drmach_board_release(drmachid_t); - static sbd_error_t *drmach_board_status(drmachid_t, drmach_status_t *); - drmach_board_t *bp; bp = kmem_zalloc(sizeof (drmach_board_t), KM_SLEEP); @@ -1811,10 +1818,6 @@ drmach_board_unassign(drmachid_t id) static sbd_error_t * drmach_cpu_new(drmach_device_t *proto, drmachid_t *idp) { - static void drmach_cpu_dispose(drmachid_t); - static sbd_error_t *drmach_cpu_release(drmachid_t); - static sbd_error_t *drmach_cpu_status(drmachid_t, drmach_status_t *); - int portid; drmach_cpu_t *cp = NULL; @@ -2208,9 +2211,6 @@ drmach_io_status(drmachid_t id, drmach_status_t *stat) static sbd_error_t * drmach_mem_new(drmach_device_t *proto, drmachid_t *idp) { - static void drmach_mem_dispose(drmachid_t); - static sbd_error_t *drmach_mem_release(drmachid_t); - static sbd_error_t *drmach_mem_status(drmachid_t, drmach_status_t *); dev_info_t *dip; int rv; |