Be consistent about functions being static.

Spotted by:	FlexeLint.
This commit is contained in:
phk 2002-10-16 09:04:52 +00:00
parent a187273ce9
commit 06c46d1823
8 changed files with 33 additions and 29 deletions

View File

@ -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;

View File

@ -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;
{

View File

@ -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;

View File

@ -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;

View File

@ -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;
{

View File

@ -1372,7 +1372,7 @@ sis_rxeof(sc)
return;
}
void
static void
sis_rxeoc(sc)
struct sis_softc *sc;
{

View File

@ -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;

View File

@ -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