diff options
author | phk <phk@FreeBSD.org> | 2002-10-16 09:04:52 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-16 09:04:52 +0000 |
commit | 1e787bca2f97d645e613fe156e3b05affdc92131 (patch) | |
tree | 00233a07b889d316593cd1c40daf87f7c7147ad9 | |
parent | 76c09c025383a07b70a19a5da1c07bd97c727209 (diff) | |
download | FreeBSD-src-1e787bca2f97d645e613fe156e3b05affdc92131.zip FreeBSD-src-1e787bca2f97d645e613fe156e3b05affdc92131.tar.gz |
Be consistent about functions being static.
Spotted by: FlexeLint.
-rw-r--r-- | sys/dev/amd/amd.c | 4 | ||||
-rw-r--r-- | sys/dev/dc/if_dc.c | 14 | ||||
-rw-r--r-- | sys/dev/ti/if_ti.c | 4 | ||||
-rw-r--r-- | sys/pci/amd.c | 4 | ||||
-rw-r--r-- | sys/pci/if_dc.c | 14 | ||||
-rw-r--r-- | sys/pci/if_sis.c | 2 | ||||
-rw-r--r-- | sys/pci/if_ti.c | 4 | ||||
-rw-r--r-- | sys/pci/ncr.c | 16 |
8 files changed, 33 insertions, 29 deletions
diff --git a/sys/dev/amd/amd.c b/sys/dev/amd/amd.c index 5089371..049acc6 100644 --- a/sys/dev/amd/amd.c +++ b/sys/dev/amd/amd.c @@ -2108,7 +2108,7 @@ amd_linkSRB(struct amd_softc *amd) } } -void +static void amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval) { if (mode == ENABLE_CE) { @@ -2123,7 +2123,7 @@ amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval) DELAY(160); } -void +static void amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry) { u_int bval; diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index 1f2923b..0617e47 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -332,7 +332,8 @@ dc_delay(sc) CSR_READ_4(sc, DC_BUSCTL); } -void dc_eeprom_width(sc) +static void +dc_eeprom_width(sc) struct dc_softc *sc; { int i; @@ -1126,7 +1127,7 @@ dc_crc_be(addr) * frames. We also sneak the broadcast address into the hash filter since * we need that too. */ -void +static void dc_setfilt_21143(sc) struct dc_softc *sc; { @@ -1196,7 +1197,7 @@ dc_setfilt_21143(sc) return; } -void +static void dc_setfilt_admtek(sc) struct dc_softc *sc; { @@ -1250,7 +1251,7 @@ dc_setfilt_admtek(sc) return; } -void +static void dc_setfilt_asix(sc) struct dc_softc *sc; { @@ -1321,7 +1322,7 @@ dc_setfilt_asix(sc) return; } -void +static void dc_setfilt_xircom(sc) struct dc_softc *sc; { @@ -1836,7 +1837,8 @@ dc_decode_leaf_mii(sc, l) return; } -void dc_read_srom(sc, bits) +static void +dc_read_srom(sc, bits) struct dc_softc *sc; int bits; { diff --git a/sys/dev/ti/if_ti.c b/sys/dev/ti/if_ti.c index 0cd4843..b91f5cb 100644 --- a/sys/dev/ti/if_ti.c +++ b/sys/dev/ti/if_ti.c @@ -1554,7 +1554,7 @@ ti_init_tx_ring(sc) * but we have to support the old way too so that Tigon 1 cards will * work. */ -void +static void ti_add_mcast(sc, addr) struct ti_softc *sc; struct ether_addr *addr; @@ -1584,7 +1584,7 @@ ti_add_mcast(sc, addr) return; } -void +static void ti_del_mcast(sc, addr) struct ti_softc *sc; struct ether_addr *addr; diff --git a/sys/pci/amd.c b/sys/pci/amd.c index 5089371..049acc6 100644 --- a/sys/pci/amd.c +++ b/sys/pci/amd.c @@ -2108,7 +2108,7 @@ amd_linkSRB(struct amd_softc *amd) } } -void +static void amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval) { if (mode == ENABLE_CE) { @@ -2123,7 +2123,7 @@ amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval) DELAY(160); } -void +static void amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry) { u_int bval; diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index 1f2923b..0617e47 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -332,7 +332,8 @@ dc_delay(sc) CSR_READ_4(sc, DC_BUSCTL); } -void dc_eeprom_width(sc) +static void +dc_eeprom_width(sc) struct dc_softc *sc; { int i; @@ -1126,7 +1127,7 @@ dc_crc_be(addr) * frames. We also sneak the broadcast address into the hash filter since * we need that too. */ -void +static void dc_setfilt_21143(sc) struct dc_softc *sc; { @@ -1196,7 +1197,7 @@ dc_setfilt_21143(sc) return; } -void +static void dc_setfilt_admtek(sc) struct dc_softc *sc; { @@ -1250,7 +1251,7 @@ dc_setfilt_admtek(sc) return; } -void +static void dc_setfilt_asix(sc) struct dc_softc *sc; { @@ -1321,7 +1322,7 @@ dc_setfilt_asix(sc) return; } -void +static void dc_setfilt_xircom(sc) struct dc_softc *sc; { @@ -1836,7 +1837,8 @@ dc_decode_leaf_mii(sc, l) return; } -void dc_read_srom(sc, bits) +static void +dc_read_srom(sc, bits) struct dc_softc *sc; int bits; { diff --git a/sys/pci/if_sis.c b/sys/pci/if_sis.c index 5edda72..459a95f 100644 --- a/sys/pci/if_sis.c +++ b/sys/pci/if_sis.c @@ -1372,7 +1372,7 @@ sis_rxeof(sc) return; } -void +static void sis_rxeoc(sc) struct sis_softc *sc; { diff --git a/sys/pci/if_ti.c b/sys/pci/if_ti.c index 0cd4843..b91f5cb 100644 --- a/sys/pci/if_ti.c +++ b/sys/pci/if_ti.c @@ -1554,7 +1554,7 @@ ti_init_tx_ring(sc) * but we have to support the old way too so that Tigon 1 cards will * work. */ -void +static void ti_add_mcast(sc, addr) struct ti_softc *sc; struct ether_addr *addr; @@ -1584,7 +1584,7 @@ ti_add_mcast(sc, addr) return; } -void +static void ti_del_mcast(sc, addr) struct ti_softc *sc; struct ether_addr *addr; diff --git a/sys/pci/ncr.c b/sys/pci/ncr.c index 49154fe..ad29859 100644 --- a/sys/pci/ncr.c +++ b/sys/pci/ncr.c @@ -2927,7 +2927,7 @@ static struct scripth scripth0 = { **========================================================== */ -void ncr_script_fill (struct script * scr, struct scripth * scrh) +static void ncr_script_fill (struct script * scr, struct scripth * scrh) { int i; ncrcmd *p; @@ -4418,7 +4418,7 @@ ncr_action (struct cam_sim *sim, union ccb *ccb) **========================================================== */ -void +static void ncr_complete (ncb_p np, nccb_p cp) { union ccb *ccb; @@ -4590,7 +4590,7 @@ ncr_complete (ncb_p np, nccb_p cp) **========================================================== */ -void +static void ncr_wakeup (ncb_p np, u_long code) { /* @@ -4720,7 +4720,7 @@ ncr_freeze_devq (ncb_p np, struct cam_path *path) **========================================================== */ -void +static void ncr_init(ncb_p np, char * msg, u_long code) { int i; @@ -5282,7 +5282,7 @@ static void ncr_log_hard_error(ncb_p np, u_short sist, u_char dstat) **========================================================== */ -void ncr_exception (ncb_p np) +static void ncr_exception (ncb_p np) { u_char istat, dstat; u_short sist; @@ -5581,7 +5581,7 @@ void ncr_exception (ncb_p np) **---------------------------------------------------------- */ -void ncr_int_sto (ncb_p np) +static void ncr_int_sto (ncb_p np) { u_long dsa, scratcha, diff; nccb_p cp; @@ -5849,7 +5849,7 @@ static int ncr_show_msg (u_char * msg) return (1); } -void ncr_int_sir (ncb_p np) +static void ncr_int_sir (ncb_p np) { u_char scntl3; u_char chg, ofs, per, fak, wide; @@ -6458,7 +6458,7 @@ static nccb_p ncr_get_nccb **========================================================== */ -void ncr_free_nccb (ncb_p np, nccb_p cp) +static void ncr_free_nccb (ncb_p np, nccb_p cp) { /* ** sanity |