From df90eec26bc39a6314e647680c92640ddd6c9bdb Mon Sep 17 00:00:00 2001 From: tsutsui Date: Tue, 22 Sep 2009 16:44:08 +0000 Subject: [PATCH] Make local functions static. --- 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(-) diff --git a/sys/dev/ic/cs89x0.c b/sys/dev/ic/cs89x0.c index 70d03b708597..f137e9da633f 100644 --- a/sys/dev/ic/cs89x0.c +++ b/sys/dev/ic/cs89x0.c @@ -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 -__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 @@ __KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.27 2009/09/22 15:25:12 tsutsui Exp $"); /* * 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 --git a/sys/dev/isa/if_cs_isa.c b/sys/dev/isa/if_cs_isa.c index 341629d0bbe0..20ba02e370a4 100644 --- a/sys/dev/isa/if_cs_isa.c +++ b/sys/dev/isa/if_cs_isa.c @@ -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 -__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 #include @@ -61,8 +61,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.24 2009/09/22 14:55:19 tsutsui Exp $ #include #include -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 --git a/sys/dev/isa/if_tscs_isa.c b/sys/dev/isa/if_tscs_isa.c index c8d9e0493418..6d512dab476b 100644 --- a/sys/dev/isa/if_tscs_isa.c +++ b/sys/dev/isa/if_tscs_isa.c @@ -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 -__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 #include @@ -57,8 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_tscs_isa.c,v 1.13 2009/09/22 14:55:19 tsutsui Exp #include #include -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 --git a/sys/dev/isapnp/if_cs_isapnp.c b/sys/dev/isapnp/if_cs_isapnp.c index 6bcb751bed01..23fe62a86753 100644 --- a/sys/dev/isapnp/if_cs_isapnp.c +++ b/sys/dev/isapnp/if_cs_isapnp.c @@ -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 -__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 #include @@ -57,8 +57,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_isapnp.c,v 1.16 2009/09/22 14:55:19 tsutsui Ex #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 --git a/sys/dev/ofisa/if_cs_ofisa.c b/sys/dev/ofisa/if_cs_ofisa.c index 9810ba1280fc..da3c08a515f4 100644 --- a/sys/dev/ofisa/if_cs_ofisa.c +++ b/sys/dev/ofisa/if_cs_ofisa.c @@ -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 -__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 #include @@ -63,8 +63,8 @@ __KERNEL_RCSID(0, "$NetBSD: if_cs_ofisa.c,v 1.23 2009/09/22 14:55:19 tsutsui Exp #include #include -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);