Be consistent about functions being static.
Spotted by: FlexeLint.
This commit is contained in:
parent
a187273ce9
commit
06c46d1823
@ -2108,7 +2108,7 @@ amd_linkSRB(struct amd_softc *amd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
||||||
{
|
{
|
||||||
if (mode == ENABLE_CE) {
|
if (mode == ENABLE_CE) {
|
||||||
@ -2123,7 +2123,7 @@ amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
|||||||
DELAY(160);
|
DELAY(160);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry)
|
amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry)
|
||||||
{
|
{
|
||||||
u_int bval;
|
u_int bval;
|
||||||
|
@ -332,7 +332,8 @@ dc_delay(sc)
|
|||||||
CSR_READ_4(sc, DC_BUSCTL);
|
CSR_READ_4(sc, DC_BUSCTL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dc_eeprom_width(sc)
|
static void
|
||||||
|
dc_eeprom_width(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -1126,7 +1127,7 @@ dc_crc_be(addr)
|
|||||||
* frames. We also sneak the broadcast address into the hash filter since
|
* frames. We also sneak the broadcast address into the hash filter since
|
||||||
* we need that too.
|
* we need that too.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
dc_setfilt_21143(sc)
|
dc_setfilt_21143(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1196,7 +1197,7 @@ dc_setfilt_21143(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_admtek(sc)
|
dc_setfilt_admtek(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1250,7 +1251,7 @@ dc_setfilt_admtek(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_asix(sc)
|
dc_setfilt_asix(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1321,7 +1322,7 @@ dc_setfilt_asix(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_xircom(sc)
|
dc_setfilt_xircom(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1836,7 +1837,8 @@ dc_decode_leaf_mii(sc, l)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dc_read_srom(sc, bits)
|
static void
|
||||||
|
dc_read_srom(sc, bits)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
int bits;
|
int bits;
|
||||||
{
|
{
|
||||||
|
@ -1554,7 +1554,7 @@ ti_init_tx_ring(sc)
|
|||||||
* but we have to support the old way too so that Tigon 1 cards will
|
* but we have to support the old way too so that Tigon 1 cards will
|
||||||
* work.
|
* work.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
ti_add_mcast(sc, addr)
|
ti_add_mcast(sc, addr)
|
||||||
struct ti_softc *sc;
|
struct ti_softc *sc;
|
||||||
struct ether_addr *addr;
|
struct ether_addr *addr;
|
||||||
@ -1584,7 +1584,7 @@ ti_add_mcast(sc, addr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
ti_del_mcast(sc, addr)
|
ti_del_mcast(sc, addr)
|
||||||
struct ti_softc *sc;
|
struct ti_softc *sc;
|
||||||
struct ether_addr *addr;
|
struct ether_addr *addr;
|
||||||
|
@ -2108,7 +2108,7 @@ amd_linkSRB(struct amd_softc *amd)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
||||||
{
|
{
|
||||||
if (mode == ENABLE_CE) {
|
if (mode == ENABLE_CE) {
|
||||||
@ -2123,7 +2123,7 @@ amd_EnDisableCE(struct amd_softc *amd, int mode, int *regval)
|
|||||||
DELAY(160);
|
DELAY(160);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry)
|
amd_EEpromOutDI(struct amd_softc *amd, int *regval, int Carry)
|
||||||
{
|
{
|
||||||
u_int bval;
|
u_int bval;
|
||||||
|
@ -332,7 +332,8 @@ dc_delay(sc)
|
|||||||
CSR_READ_4(sc, DC_BUSCTL);
|
CSR_READ_4(sc, DC_BUSCTL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void dc_eeprom_width(sc)
|
static void
|
||||||
|
dc_eeprom_width(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
@ -1126,7 +1127,7 @@ dc_crc_be(addr)
|
|||||||
* frames. We also sneak the broadcast address into the hash filter since
|
* frames. We also sneak the broadcast address into the hash filter since
|
||||||
* we need that too.
|
* we need that too.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
dc_setfilt_21143(sc)
|
dc_setfilt_21143(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1196,7 +1197,7 @@ dc_setfilt_21143(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_admtek(sc)
|
dc_setfilt_admtek(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1250,7 +1251,7 @@ dc_setfilt_admtek(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_asix(sc)
|
dc_setfilt_asix(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1321,7 +1322,7 @@ dc_setfilt_asix(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
dc_setfilt_xircom(sc)
|
dc_setfilt_xircom(sc)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
{
|
{
|
||||||
@ -1836,7 +1837,8 @@ dc_decode_leaf_mii(sc, l)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void dc_read_srom(sc, bits)
|
static void
|
||||||
|
dc_read_srom(sc, bits)
|
||||||
struct dc_softc *sc;
|
struct dc_softc *sc;
|
||||||
int bits;
|
int bits;
|
||||||
{
|
{
|
||||||
|
@ -1372,7 +1372,7 @@ sis_rxeof(sc)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
sis_rxeoc(sc)
|
sis_rxeoc(sc)
|
||||||
struct sis_softc *sc;
|
struct sis_softc *sc;
|
||||||
{
|
{
|
||||||
|
@ -1554,7 +1554,7 @@ ti_init_tx_ring(sc)
|
|||||||
* but we have to support the old way too so that Tigon 1 cards will
|
* but we have to support the old way too so that Tigon 1 cards will
|
||||||
* work.
|
* work.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
ti_add_mcast(sc, addr)
|
ti_add_mcast(sc, addr)
|
||||||
struct ti_softc *sc;
|
struct ti_softc *sc;
|
||||||
struct ether_addr *addr;
|
struct ether_addr *addr;
|
||||||
@ -1584,7 +1584,7 @@ ti_add_mcast(sc, addr)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
ti_del_mcast(sc, addr)
|
ti_del_mcast(sc, addr)
|
||||||
struct ti_softc *sc;
|
struct ti_softc *sc;
|
||||||
struct ether_addr *addr;
|
struct ether_addr *addr;
|
||||||
|
@ -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;
|
int i;
|
||||||
ncrcmd *p;
|
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)
|
ncr_complete (ncb_p np, nccb_p cp)
|
||||||
{
|
{
|
||||||
union ccb *ccb;
|
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)
|
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)
|
ncr_init(ncb_p np, char * msg, u_long code)
|
||||||
{
|
{
|
||||||
int i;
|
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_char istat, dstat;
|
||||||
u_short sist;
|
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;
|
u_long dsa, scratcha, diff;
|
||||||
nccb_p cp;
|
nccb_p cp;
|
||||||
@ -5849,7 +5849,7 @@ static int ncr_show_msg (u_char * msg)
|
|||||||
return (1);
|
return (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ncr_int_sir (ncb_p np)
|
static void ncr_int_sir (ncb_p np)
|
||||||
{
|
{
|
||||||
u_char scntl3;
|
u_char scntl3;
|
||||||
u_char chg, ofs, per, fak, wide;
|
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
|
** sanity
|
||||||
|
Loading…
Reference in New Issue
Block a user