Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/raidframe mark all the device entry points static.



details:   https://anonhg.NetBSD.org/src/rev/72d5a7482e47
branches:  trunk
changeset: 339285:72d5a7482e47
user:      mrg <mrg%NetBSD.org@localhost>
date:      Fri Jul 10 09:49:56 2015 +0000

description:
mark all the device entry points static.

diffstat:

 sys/dev/raidframe/rf_netbsdkintf.c |  41 ++++++++++++++++++++-----------------
 1 files changed, 22 insertions(+), 19 deletions(-)

diffs (122 lines):

diff -r ad9b2e725ef8 -r 72d5a7482e47 sys/dev/raidframe/rf_netbsdkintf.c
--- a/sys/dev/raidframe/rf_netbsdkintf.c        Fri Jul 10 03:01:21 2015 +0000
+++ b/sys/dev/raidframe/rf_netbsdkintf.c        Fri Jul 10 09:49:56 2015 +0000
@@ -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 @@
     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 @@
        }
 }
 
-
-int
+static int
 raidsize(dev_t dev)
 {
        struct raid_softc *rs;
@@ -631,7 +630,7 @@
 
 }
 
-int
+static int
 raiddump(dev_t dev, daddr_t blkno, void *va, size_t size)
 {
        int     unit = raidunit(dev);
@@ -767,8 +766,9 @@
                
        return error;
 }
+
 /* ARGSUSED */
-int
+static int
 raidopen(dev_t dev, int flags, int fmt,
     struct lwp *l)
 {
@@ -852,8 +852,9 @@
 
 
 }
+
 /* ARGSUSED */
-int
+static int
 raidclose(dev_t dev, int flags, int fmt, struct lwp *l)
 {
        int     unit = raidunit(dev);
@@ -902,7 +903,7 @@
 
 }
 
-void
+static void
 raidstrategy(struct buf *bp)
 {
        unsigned int unit = raidunit(bp->b_dev);
@@ -972,8 +973,9 @@
        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 @@
        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 @@
        return 0;
 }
 
-int
+static int
 raidioctl(dev_t dev, u_long cmd, void *data, int flag, struct lwp *l)
 {
        int     unit = raidunit(dev);



Home | Main Index | Thread Index | Old Index