Module Name:    src
Committed By:   jdolecek
Date:           Sun Feb 26 23:06:36 UTC 2017

Modified Files:
        src/sys/dev/ic: ld_icp.c

Log Message:
mark local functions static, similar to other ld(4) attachments


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/sys/dev/ic/ld_icp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/ld_icp.c
diff -u src/sys/dev/ic/ld_icp.c:1.29 src/sys/dev/ic/ld_icp.c:1.30
--- src/sys/dev/ic/ld_icp.c:1.29	Tue Sep 27 03:33:32 2016
+++ src/sys/dev/ic/ld_icp.c	Sun Feb 26 23:06:36 2017
@@ -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 @@ struct ld_icp_softc {
 	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 @@ static const struct icp_servicecb ld_icp
 	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 @@ ld_icp_match(device_t parent, cfdata_t m
 	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 @@ ld_icp_attach(device_t parent, device_t 
 	ldattach(ld, BUFQ_DISK_DEFAULT_STRAT);
 }
 
-int
+static int
 ld_icp_detach(device_t dv, int flags)
 {
 	int rv;
@@ -175,7 +175,7 @@ ld_icp_detach(device_t dv, int flags)
 	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 @@ ld_icp_dobio(struct ld_icp_softc *sc, vo
 	return (rv);
 }
 
-int
+static int
 ld_icp_start(struct ld_softc *ld, struct buf *bp)
 {
 
@@ -246,7 +246,7 @@ ld_icp_start(struct ld_softc *ld, struct
 	    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 @@ ld_icp_dump(struct ld_softc *ld, void *d
 	    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 @@ ld_icp_flush(struct ld_softc *ld, int fl
 	return (rv);
 }
 
-void
+static void
 ld_icp_intr(struct icp_ccb *ic)
 {
 	struct buf *bp;
@@ -321,7 +321,7 @@ ld_icp_intr(struct icp_ccb *ic)
 	lddone(&sc->sc_ld, bp);
 }
 
-void
+static void
 ld_icp_adjqparam(device_t dv, int openings)
 {
 

Reply via email to