Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic mark local functions static, similar to other ld(...
details: https://anonhg.NetBSD.org/src/rev/a10bf13b4e2b
branches: trunk
changeset: 351778:a10bf13b4e2b
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sun Feb 26 23:06:36 2017 +0000
description:
mark local functions static, similar to other ld(4) attachments
diffstat:
sys/dev/ic/ld_icp.c | 40 ++++++++++++++++++++--------------------
1 files changed, 20 insertions(+), 20 deletions(-)
diffs (126 lines):
diff -r 574133a2aeb1 -r a10bf13b4e2b sys/dev/ic/ld_icp.c
--- a/sys/dev/ic/ld_icp.c Sun Feb 26 22:18:58 2017 +0000
+++ b/sys/dev/ic/ld_icp.c Sun Feb 26 23:06:36 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_icp.c,v 1.29 2016/09/27 03:33:32 pgoyette Exp $ */
+/* $NetBSD: ld_icp.c,v 1.30 2017/02/26 23:06:36 jdolecek Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_icp.c,v 1.29 2016/09/27 03:33:32 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_icp.c,v 1.30 2017/02/26 23:06:36 jdolecek Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -60,17 +60,17 @@
int sc_hwunit;
};
-void ld_icp_attach(device_t, device_t, void *);
-int ld_icp_detach(device_t, int);
-int ld_icp_dobio(struct ld_icp_softc *, void *, int, int, int,
+static void ld_icp_attach(device_t, device_t, void *);
+static int ld_icp_detach(device_t, int);
+static int ld_icp_dobio(struct ld_icp_softc *, void *, int, int, int,
struct buf *);
-int ld_icp_dump(struct ld_softc *, void *, int, int);
-int ld_icp_flush(struct ld_softc *, int);
-void ld_icp_intr(struct icp_ccb *);
-int ld_icp_match(device_t, cfdata_t, void *);
-int ld_icp_start(struct ld_softc *, struct buf *);
+static int ld_icp_dump(struct ld_softc *, void *, int, int);
+static int ld_icp_flush(struct ld_softc *, int);
+static void ld_icp_intr(struct icp_ccb *);
+static int ld_icp_match(device_t, cfdata_t, void *);
+static int ld_icp_start(struct ld_softc *, struct buf *);
-void ld_icp_adjqparam(device_t, int);
+static void ld_icp_adjqparam(device_t, int);
CFATTACH_DECL_NEW(ld_icp, sizeof(struct ld_icp_softc),
ld_icp_match, ld_icp_attach, ld_icp_detach, NULL);
@@ -79,7 +79,7 @@
ld_icp_adjqparam,
};
-int
+static int
ld_icp_match(device_t parent, cfdata_t match, void *aux)
{
struct icp_attach_args *icpa;
@@ -89,7 +89,7 @@
return (icpa->icpa_unit < ICPA_UNIT_SCSI);
}
-void
+static void
ld_icp_attach(device_t parent, device_t self, void *aux)
{
struct icp_attach_args *icpa = aux;
@@ -163,7 +163,7 @@
ldattach(ld, BUFQ_DISK_DEFAULT_STRAT);
}
-int
+static int
ld_icp_detach(device_t dv, int flags)
{
int rv;
@@ -175,7 +175,7 @@
return (0);
}
-int
+static int
ld_icp_dobio(struct ld_icp_softc *sc, void *data, int datasize, int blkno,
int dowrite, struct buf *bp)
{
@@ -238,7 +238,7 @@
return (rv);
}
-int
+static int
ld_icp_start(struct ld_softc *ld, struct buf *bp)
{
@@ -246,7 +246,7 @@
bp->b_bcount, bp->b_rawblkno, (bp->b_flags & B_READ) == 0, bp));
}
-int
+static int
ld_icp_dump(struct ld_softc *ld, void *data, int blkno, int blkcnt)
{
@@ -254,7 +254,7 @@
blkcnt * ld->sc_secsize, blkno, 1, NULL));
}
-int
+static int
ld_icp_flush(struct ld_softc *ld, int flags)
{
struct ld_icp_softc *sc;
@@ -285,7 +285,7 @@
return (rv);
}
-void
+static void
ld_icp_intr(struct icp_ccb *ic)
{
struct buf *bp;
@@ -321,7 +321,7 @@
lddone(&sc->sc_ld, bp);
}
-void
+static void
ld_icp_adjqparam(device_t dv, int openings)
{
Home |
Main Index |
Thread Index |
Old Index