summaryrefslogtreecommitdiff
path: root/sys/dev/raidframe
diff options
context:
space:
mode:
authormrg <mrg@NetBSD.org>2015-07-10 09:49:56 +0000
committermrg <mrg@NetBSD.org>2015-07-10 09:49:56 +0000
commitb41d01adc78ef528e653ddad656c1bef17e9b641 (patch)
tree6c6aba697aee38b47ba296ce74b0171f381977fe /sys/dev/raidframe
parent76a5363dc009d246733fd98a6bd3794765d1769a (diff)
mark all the device entry points static.
Diffstat (limited to 'sys/dev/raidframe')
-rw-r--r--sys/dev/raidframe/rf_netbsdkintf.c41
1 files changed, 22 insertions, 19 deletions
diff --git a/sys/dev/raidframe/rf_netbsdkintf.c b/sys/dev/raidframe/rf_netbsdkintf.c
index 67f14c8adcf..f06584a3bc0 100644
--- a/sys/dev/raidframe/rf_netbsdkintf.c
+++ b/sys/dev/raidframe/rf_netbsdkintf.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rf_netbsdkintf.c,v 1.323 2015/04/26 15:15:20 mlelstv Exp $ */
+/* $NetBSD: rf_netbsdkintf.c,v 1.324 2015/07/10 09:49:56 mrg Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 2008-2011 The NetBSD Foundation, Inc.
@@ -101,7 +101,7 @@
***********************************************************/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.323 2015/04/26 15:15:20 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.324 2015/07/10 09:49:56 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@@ -195,14 +195,14 @@ static int raidread_component_label(unsigned,
dev_t, struct vnode *, RF_ComponentLabel_t *);
-dev_type_open(raidopen);
-dev_type_close(raidclose);
-dev_type_read(raidread);
-dev_type_write(raidwrite);
-dev_type_ioctl(raidioctl);
-dev_type_strategy(raidstrategy);
-dev_type_dump(raiddump);
-dev_type_size(raidsize);
+static dev_type_open(raidopen);
+static dev_type_close(raidclose);
+static dev_type_read(raidread);
+static dev_type_write(raidwrite);
+static dev_type_ioctl(raidioctl);
+static dev_type_strategy(raidstrategy);
+static dev_type_dump(raiddump);
+static dev_type_size(raidsize);
const struct bdevsw raid_bdevsw = {
.d_open = raidopen,
@@ -597,8 +597,7 @@ rf_buildroothack(RF_ConfigSet_t *config_sets)
}
}
-
-int
+static int
raidsize(dev_t dev)
{
struct raid_softc *rs;
@@ -631,7 +630,7 @@ raidsize(dev_t dev)
}
-int
+static int
raiddump(dev_t dev, daddr_t blkno, void *va, size_t size)
{
int unit = raidunit(dev);
@@ -767,8 +766,9 @@ out:
return error;
}
+
/* ARGSUSED */
-int
+static int
raidopen(dev_t dev, int flags, int fmt,
struct lwp *l)
{
@@ -852,8 +852,9 @@ bad:
}
+
/* ARGSUSED */
-int
+static int
raidclose(dev_t dev, int flags, int fmt, struct lwp *l)
{
int unit = raidunit(dev);
@@ -902,7 +903,7 @@ raidclose(dev_t dev, int flags, int fmt, struct lwp *l)
}
-void
+static void
raidstrategy(struct buf *bp)
{
unsigned int unit = raidunit(bp->b_dev);
@@ -972,8 +973,9 @@ done:
bp->b_resid = bp->b_bcount;
biodone(bp);
}
+
/* ARGSUSED */
-int
+static int
raidread(dev_t dev, struct uio *uio, int flags)
{
int unit = raidunit(dev);
@@ -988,8 +990,9 @@ raidread(dev_t dev, struct uio *uio, int flags)
return (physio(raidstrategy, NULL, dev, B_READ, minphys, uio));
}
+
/* ARGSUSED */
-int
+static int
raidwrite(dev_t dev, struct uio *uio, int flags)
{
int unit = raidunit(dev);
@@ -1037,7 +1040,7 @@ raid_detach_unlocked(struct raid_softc *rs)
return 0;
}
-int
+static int
raidioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
{
int unit = raidunit(dev);