Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Make local functions static.



details:   https://anonhg.NetBSD.org/src/rev/1979095bfc4f
branches:  trunk
changeset: 747598:1979095bfc4f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Tue Sep 22 16:44:08 2009 +0000

description:
Make local functions static.

diffstat:

 sys/dev/ic/cs89x0.c           |  42 +++++++++++++++++++++---------------------
 sys/dev/isa/if_cs_isa.c       |   8 ++++----
 sys/dev/isa/if_tscs_isa.c     |   8 ++++----
 sys/dev/isapnp/if_cs_isapnp.c |   8 ++++----
 sys/dev/ofisa/if_cs_ofisa.c   |   8 ++++----
 5 files changed, 37 insertions(+), 37 deletions(-)

diffs (180 lines):

diff -r fc24f2fc132c -r 1979095bfc4f sys/dev/ic/cs89x0.c
--- a/sys/dev/ic/cs89x0.c       Tue Sep 22 15:34:22 2009 +0000
+++ b/sys/dev/ic/cs89x0.c       Tue Sep 22 16:44:08 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $      */
+/*     $NetBSD: cs89x0.c,v 1.28 2009/09/22 16:44:08 tsutsui Exp $      */
 
 /*
  * Copyright (c) 2004 Christopher Gilbert
@@ -212,7 +212,7 @@
 */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.28 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include "opt_inet.h"
 
@@ -265,26 +265,26 @@
 /*
  * FUNCTION PROTOTYPES
  */
-void   cs_get_default_media(struct cs_softc *);
-int    cs_get_params(struct cs_softc *);
-int    cs_get_enaddr(struct cs_softc *);
-int    cs_reset_chip(struct cs_softc *);
-void   cs_reset(struct cs_softc *);
-int    cs_ioctl(struct ifnet *, u_long, void *);
-void   cs_initChip(struct cs_softc *);
-void   cs_buffer_event(struct cs_softc *, u_int16_t);
-void   cs_transmit_event(struct cs_softc *, u_int16_t);
-void   cs_receive_event(struct cs_softc *, u_int16_t);
-void   cs_process_receive(struct cs_softc *);
-void   cs_process_rx_early(struct cs_softc *);
-void   cs_start_output(struct ifnet *);
-void   cs_copy_tx_frame(struct cs_softc *, struct mbuf *);
-void   cs_set_ladr_filt(struct cs_softc *, struct ethercom *);
-u_int16_t cs_hash_index(char *);
-void   cs_counter_event(struct cs_softc *, u_int16_t);
+static void    cs_get_default_media(struct cs_softc *);
+static int     cs_get_params(struct cs_softc *);
+static int     cs_get_enaddr(struct cs_softc *);
+static int     cs_reset_chip(struct cs_softc *);
+static void    cs_reset(struct cs_softc *);
+static int     cs_ioctl(struct ifnet *, u_long, void *);
+static void    cs_initChip(struct cs_softc *);
+static void    cs_buffer_event(struct cs_softc *, u_int16_t);
+static void    cs_transmit_event(struct cs_softc *, u_int16_t);
+static void    cs_receive_event(struct cs_softc *, u_int16_t);
+static void    cs_process_receive(struct cs_softc *);
+static void    cs_process_rx_early(struct cs_softc *);
+static void    cs_start_output(struct ifnet *);
+static void    cs_copy_tx_frame(struct cs_softc *, struct mbuf *);
+static void    cs_set_ladr_filt(struct cs_softc *, struct ethercom *);
+static u_int16_t cs_hash_index(char *);
+static void    cs_counter_event(struct cs_softc *, u_int16_t);
 
-int    cs_mediachange(struct ifnet *);
-void   cs_mediastatus(struct ifnet *, struct ifmediareq *);
+static int     cs_mediachange(struct ifnet *);
+static void    cs_mediastatus(struct ifnet *, struct ifmediareq *);
 
 static bool cs_shutdown(device_t, int);
 static int cs_enable(struct cs_softc *);
diff -r fc24f2fc132c -r 1979095bfc4f sys/dev/isa/if_cs_isa.c
--- a/sys/dev/isa/if_cs_isa.c   Tue Sep 22 15:34:22 2009 +0000
+++ b/sys/dev/isa/if_cs_isa.c   Tue Sep 22 16:44:08 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $   */
+/*     $NetBSD: if_cs_isa.c,v 1.25 2009/09/22 16:44:08 tsutsui Exp $   */
 
 /*
  * Copyright 1997
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.25 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -61,8 +61,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int    cs_isa_probe(device_t, cfdata_t, void *);
-void   cs_isa_attach(device_t, device_t, void *);
+static int     cs_isa_probe(device_t, cfdata_t, void *);
+static void    cs_isa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(cs_isa, sizeof(struct cs_softc_isa),
     cs_isa_probe, cs_isa_attach, NULL, NULL);
diff -r fc24f2fc132c -r 1979095bfc4f sys/dev/isa/if_tscs_isa.c
--- a/sys/dev/isa/if_tscs_isa.c Tue Sep 22 15:34:22 2009 +0000
+++ b/sys/dev/isa/if_tscs_isa.c Tue Sep 22 16:44:08 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp $ */
+/*     $NetBSD: if_tscs_isa.c,v 1.14 2009/09/22 16:44:08 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 2005 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.14 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,8 +57,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int    tscs_isa_probe(device_t, cfdata_t, void *);
-void   tscs_isa_attach(device_t, device_t, void *);
+static int     tscs_isa_probe(device_t, cfdata_t, void *);
+static void    tscs_isa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(tscs_isa, sizeof(struct cs_softc_isa),
     tscs_isa_probe, tscs_isa_attach, NULL, NULL);
diff -r fc24f2fc132c -r 1979095bfc4f sys/dev/isapnp/if_cs_isapnp.c
--- a/sys/dev/isapnp/if_cs_isapnp.c     Tue Sep 22 15:34:22 2009 +0000
+++ b/sys/dev/isapnp/if_cs_isapnp.c     Tue Sep 22 16:44:08 2009 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Exp $ */
+/* $NetBSD: if_cs_isapnp.c,v 1.17 2009/09/22 16:44:08 tsutsui Exp $ */
 
 /*-
  * Copyright (c)2001 YAMAMOTO Takashi,
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.17 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -57,8 +57,8 @@
 
 #define DEVNAME(sc) device_xname((sc)->sc_dev)
 
-int cs_isapnp_match(device_t, cfdata_t, void *);
-void cs_isapnp_attach(device_t, device_t, void *);
+static int cs_isapnp_match(device_t, cfdata_t, void *);
+static void cs_isapnp_attach(device_t, device_t, void *);
 
 #ifdef notyet
 CFATTACH_DECL_NEW(cs_isapnp, sizeof(struct cs_softc_isa),
diff -r fc24f2fc132c -r 1979095bfc4f sys/dev/ofisa/if_cs_ofisa.c
--- a/sys/dev/ofisa/if_cs_ofisa.c       Tue Sep 22 15:34:22 2009 +0000
+++ b/sys/dev/ofisa/if_cs_ofisa.c       Tue Sep 22 16:44:08 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp $ */
+/*     $NetBSD: if_cs_ofisa.c,v 1.24 2009/09/22 16:44:08 tsutsui Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.24 2009/09/22 16:44:08 tsutsui Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -63,8 +63,8 @@
 #include <dev/ic/cs89x0var.h>
 #include <dev/isa/cs89x0isavar.h>
 
-int    cs_ofisa_match(device_t, cfdata_t, void *);
-void   cs_ofisa_attach(device_t, device_t, void *);
+static int     cs_ofisa_match(device_t, cfdata_t, void *);
+static void    cs_ofisa_attach(device_t, device_t, void *);
 
 CFATTACH_DECL_NEW(cs_ofisa, sizeof(struct cs_softc_isa),
     cs_ofisa_match, cs_ofisa_attach, NULL, NULL);



Home | Main Index | Thread Index | Old Index