summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2011-06-21 12:29:35 +0000
committerRichard Lowe <richlowe@richlowe.net>2011-07-02 22:16:23 -0400
commit4558a632424b10be2fad336018ecadb3e928f1ae (patch)
treea99e0ae60b3ee837316380251bbb5bf43f0ef158 /usr/src
parent9f39f3018e379bbb06ae4ce0075b6224bbf1a782 (diff)
downloadillumos-joyent-4558a632424b10be2fad336018ecadb3e928f1ae.tar.gz
starfire/ngdrmach: 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/starfire/io/drmach.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/usr/src/uts/sun4u/starfire/io/drmach.c b/usr/src/uts/sun4u/starfire/io/drmach.c
index c7bdd5ae99..8fe3339259 100644
--- a/usr/src/uts/sun4u/starfire/io/drmach.c
+++ b/usr/src/uts/sun4u/starfire/io/drmach.c
@@ -211,11 +211,25 @@ struct drmach_shutdown_mbox {
uint64_t physaddr;
};
struct drmach_shutdown_mbox *drmach_shutdown_asm_mbox;
+
+static int drmach_fini(void);
static sbd_error_t *drmach_device_new(drmach_node_t *,
drmach_board_t *, drmach_device_t **);
static sbd_error_t *drmach_cpu_new(drmach_device_t *);
static sbd_error_t *drmach_mem_new(drmach_device_t *);
static sbd_error_t *drmach_io_new(drmach_device_t *);
+static sbd_error_t *drmach_board_release(drmachid_t);
+static sbd_error_t *drmach_board_status(drmachid_t, drmach_status_t *);
+static sbd_error_t *drmach_cpu_release(drmachid_t);
+static sbd_error_t *drmach_cpu_status(drmachid_t, drmach_status_t *);
+static sbd_error_t *drmach_io_release(drmachid_t);
+static sbd_error_t *drmach_io_status(drmachid_t, drmach_status_t *);
+static sbd_error_t *drmach_mem_release(drmachid_t);
+static sbd_error_t *drmach_mem_status(drmachid_t, drmach_status_t *);
+
+
+
+
extern struct cpu *SIGBCPU;
@@ -347,8 +361,6 @@ _init(void)
int
_fini(void)
{
- static int drmach_fini(void);
-
if (drmach_fini())
return (DDI_FAILURE);
else
@@ -787,9 +799,6 @@ drmach_device_get_proplen(drmach_device_t *dp, char *name, int *len)
static drmach_board_t *
drmach_board_new(int bnum)
{
- 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);
@@ -1730,9 +1739,6 @@ drmach_copy_rename_fini(drmachid_t id)
static sbd_error_t *
drmach_io_new(drmach_device_t *dp)
{
- static sbd_error_t *drmach_io_release(drmachid_t);
- static sbd_error_t *drmach_io_status(drmachid_t, drmach_status_t *);
-
sbd_error_t *err;
int portid;
@@ -2350,9 +2356,6 @@ drmach_board_unassign(drmachid_t id)
static sbd_error_t *
drmach_cpu_new(drmach_device_t *dp)
{
- static sbd_error_t *drmach_cpu_release(drmachid_t);
- static sbd_error_t *drmach_cpu_status(drmachid_t, drmach_status_t *);
-
sbd_error_t *err;
int portid;
@@ -2930,9 +2933,6 @@ drmach_io_status(drmachid_t id, drmach_status_t *stat)
static sbd_error_t *
drmach_mem_new(drmach_device_t *dp)
{
- static sbd_error_t *drmach_mem_release(drmachid_t);
- static sbd_error_t *drmach_mem_status(drmachid_t, drmach_status_t *);
-
dp->unum = 0;
dp->cm.isa = (void *)drmach_mem_new;
dp->cm.release = drmach_mem_release;