Be consistent about functions being static.

Spotted by:	FlexeLint.
This commit is contained in:
Poul-Henning Kamp 2002-10-16 08:48:39 +00:00
parent 4d8d520f17
commit 031fd299d7
11 changed files with 26 additions and 26 deletions

View File

@ -166,7 +166,7 @@ mcd_alloc_resources (device_t dev)
return (error); return (error);
} }
void static void
mcd_release_resources (device_t dev) mcd_release_resources (device_t dev)
{ {
struct mcd_softc * sc; struct mcd_softc * sc;

View File

@ -219,7 +219,7 @@ mly_probe(device_t dev)
/******************************************************************************** /********************************************************************************
* Initialise the controller and softc * Initialise the controller and softc
*/ */
int static int
mly_attach(device_t dev) mly_attach(device_t dev)
{ {
struct mly_softc *sc = device_get_softc(dev); struct mly_softc *sc = device_get_softc(dev);
@ -679,7 +679,7 @@ mly_mmbox_map_helper(void *arg, bus_dma_segment_t *segs, int nseg, int error)
* *
* Should not be called if the controller is active. * Should not be called if the controller is active.
*/ */
void static void
mly_free(struct mly_softc *sc) mly_free(struct mly_softc *sc)
{ {
@ -1524,7 +1524,7 @@ mly_start(struct mly_command *mc)
/******************************************************************************** /********************************************************************************
* Pick up command status from the controller, schedule a completion event * Pick up command status from the controller, schedule a completion event
*/ */
void static void
mly_done(struct mly_softc *sc) mly_done(struct mly_softc *sc)
{ {
struct mly_command *mc; struct mly_command *mc;
@ -1656,7 +1656,7 @@ mly_complete(void *context, int pending)
/******************************************************************************** /********************************************************************************
* Allocate a command. * Allocate a command.
*/ */
int static int
mly_alloc_command(struct mly_softc *sc, struct mly_command **mcp) mly_alloc_command(struct mly_softc *sc, struct mly_command **mcp)
{ {
struct mly_command *mc; struct mly_command *mc;
@ -1673,7 +1673,7 @@ mly_alloc_command(struct mly_softc *sc, struct mly_command **mcp)
/******************************************************************************** /********************************************************************************
* Release a command back to the freelist. * Release a command back to the freelist.
*/ */
void static void
mly_release_command(struct mly_command *mc) mly_release_command(struct mly_command *mc)
{ {
debug_called(3); debug_called(3);
@ -1907,7 +1907,7 @@ mly_unmap_command(struct mly_command *mc)
* to keep things simple, we map these 1:1, so "bus" and "channel" may be used * to keep things simple, we map these 1:1, so "bus" and "channel" may be used
* interchangeably. * interchangeably.
*/ */
int static int
mly_cam_attach(struct mly_softc *sc) mly_cam_attach(struct mly_softc *sc)
{ {
struct cam_devq *devq; struct cam_devq *devq;
@ -1976,7 +1976,7 @@ mly_cam_attach(struct mly_softc *sc)
/******************************************************************************** /********************************************************************************
* Detach from CAM * Detach from CAM
*/ */
void static void
mly_cam_detach(struct mly_softc *sc) mly_cam_detach(struct mly_softc *sc)
{ {
int i; int i;
@ -2382,7 +2382,7 @@ mly_find_periph(struct mly_softc *sc, int bus, int target)
/******************************************************************************** /********************************************************************************
* Name the device at (bus)(target) * Name the device at (bus)(target)
*/ */
int static int
mly_name_device(struct mly_softc *sc, int bus, int target) mly_name_device(struct mly_softc *sc, int bus, int target)
{ {
struct cam_periph *periph; struct cam_periph *periph;

View File

@ -596,7 +596,7 @@ mpt_bus_reset(union ccb *ccb)
static void mpt_ctlop(mpt_softc_t *, void *, u_int32_t); static void mpt_ctlop(mpt_softc_t *, void *, u_int32_t);
static void mpt_event_notify_reply(mpt_softc_t *mpt, MSG_EVENT_NOTIFY_REPLY *); static void mpt_event_notify_reply(mpt_softc_t *mpt, MSG_EVENT_NOTIFY_REPLY *);
void static void
mpt_ctlop(mpt_softc_t *mpt, void *vmsg, u_int32_t reply) mpt_ctlop(mpt_softc_t *mpt, void *vmsg, u_int32_t reply)
{ {
MSG_DEFAULT_REPLY *dmsg = vmsg; MSG_DEFAULT_REPLY *dmsg = vmsg;

View File

@ -955,7 +955,7 @@ rp_releaseresource(CONTROLLER_t *ctlp)
} }
} }
int static int
rpopen(dev, flag, mode, td) rpopen(dev, flag, mode, td)
dev_t dev; dev_t dev;
int flag, mode; int flag, mode;
@ -1114,7 +1114,7 @@ rpopen(dev, flag, mode, td)
return(error); return(error);
} }
int static int
rpclose(dev, flag, mode, td) rpclose(dev, flag, mode, td)
dev_t dev; dev_t dev;
int flag, mode; int flag, mode;
@ -1229,7 +1229,7 @@ rpdtrwakeup(void *chan)
wakeup(&rp->dtr_wait); wakeup(&rp->dtr_wait);
} }
int static int
rpioctl(dev, cmd, data, flag, td) rpioctl(dev, cmd, data, flag, td)
dev_t dev; dev_t dev;
u_long cmd; u_long cmd;

View File

@ -476,7 +476,7 @@ rp_isa_aiop2off(int aiop, int offset)
} }
/* Read the int status for an ISA controller. */ /* Read the int status for an ISA controller. */
unsigned char static unsigned char
rp_isa_ctlmask(CONTROLLER_t *ctlp) rp_isa_ctlmask(CONTROLLER_t *ctlp)
{ {
return sGetControllerIntStatus(rp_controller,ctlp); return sGetControllerIntStatus(rp_controller,ctlp);

View File

@ -338,7 +338,7 @@ rp_pci_aiop2off(int aiop, int offset)
} }
/* Read the int status for a PCI controller. */ /* Read the int status for a PCI controller. */
unsigned char static unsigned char
rp_pci_ctlmask(CONTROLLER_t *ctlp) rp_pci_ctlmask(CONTROLLER_t *ctlp)
{ {
return sPCIGetControllerIntStatus(ctlp); return sPCIGetControllerIntStatus(ctlp);

View File

@ -1986,7 +1986,7 @@ si_lstart(void *arg)
/* /*
* Stop output on a line. called at spltty(); * Stop output on a line. called at spltty();
*/ */
void static void
si_stop(struct tty *tp, int rw) si_stop(struct tty *tp, int rw)
{ {
volatile struct si_channel *ccbp; volatile struct si_channel *ccbp;

View File

@ -4305,7 +4305,7 @@ static void sym_recover_scsi_int (hcb_p np, u_char hsts)
/* /*
* chip exception handler for selection timeout * chip exception handler for selection timeout
*/ */
void sym_int_sto (hcb_p np) static void sym_int_sto (hcb_p np)
{ {
u32 dsp = INL (nc_dsp); u32 dsp = INL (nc_dsp);
@ -4320,7 +4320,7 @@ void sym_int_sto (hcb_p np)
/* /*
* chip exception handler for unexpected disconnect * chip exception handler for unexpected disconnect
*/ */
void sym_int_udc (hcb_p np) static void sym_int_udc (hcb_p np)
{ {
printf ("%s: unexpected disconnect\n", sym_name(np)); printf ("%s: unexpected disconnect\n", sym_name(np));
sym_recover_scsi_int(np, HS_UNEXPECTED); sym_recover_scsi_int(np, HS_UNEXPECTED);
@ -6259,7 +6259,7 @@ static void sym_nego_rejected(hcb_p np, tcb_p tp, ccb_p cp)
/* /*
* chip exception handler for programmed interrupts. * chip exception handler for programmed interrupts.
*/ */
void sym_int_sir (hcb_p np) static void sym_int_sir (hcb_p np)
{ {
u_char num = INB (nc_dsps); u_char num = INB (nc_dsps);
u32 dsa = INL (nc_dsa); u32 dsa = INL (nc_dsa);
@ -9622,7 +9622,7 @@ static void sym_pci_free(hcb_p np)
/* /*
* Allocate CAM resources and register a bus to CAM. * Allocate CAM resources and register a bus to CAM.
*/ */
int sym_cam_attach(hcb_p np) static int sym_cam_attach(hcb_p np)
{ {
struct cam_devq *devq = 0; struct cam_devq *devq = 0;
struct cam_sim *sim = 0; struct cam_sim *sim = 0;
@ -9730,7 +9730,7 @@ int sym_cam_attach(hcb_p np)
/* /*
* Free everything that deals with CAM. * Free everything that deals with CAM.
*/ */
void sym_cam_free(hcb_p np) static void sym_cam_free(hcb_p np)
{ {
#ifdef FreeBSD_Bus_Io_Abstraction #ifdef FreeBSD_Bus_Io_Abstraction
if (np->intr) if (np->intr)
@ -9953,7 +9953,7 @@ static int sym_read_Symbios_nvram (hcb_p np, Symbios_nvram *nvram);
static int sym_read_Tekram_nvram (hcb_p np, Tekram_nvram *nvram); static int sym_read_Tekram_nvram (hcb_p np, Tekram_nvram *nvram);
#endif #endif
int sym_read_nvram(hcb_p np, struct sym_nvram *nvp) static int sym_read_nvram(hcb_p np, struct sym_nvram *nvp)
{ {
#ifdef SYM_CONF_NVRAM_SUPPORT #ifdef SYM_CONF_NVRAM_SUPPORT
/* /*

View File

@ -692,7 +692,7 @@ twed_strategy(twe_bio *bp)
/******************************************************************************** /********************************************************************************
* System crashdump support * System crashdump support
*/ */
int static int
twed_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length) twed_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length)
{ {

View File

@ -183,7 +183,7 @@ static int ubsec_maxbatch = 2; /* XXX tune based on part+sys speed */
SYSCTL_INT(_kern, OID_AUTO, ubsec_maxbatch, CTLFLAG_RW, &ubsec_maxbatch, SYSCTL_INT(_kern, OID_AUTO, ubsec_maxbatch, CTLFLAG_RW, &ubsec_maxbatch,
0, "Broadcom driver: max ops to batch w/o interrupt"); 0, "Broadcom driver: max ops to batch w/o interrupt");
int static int
ubsec_probe(device_t dev) ubsec_probe(device_t dev)
{ {
if (pci_get_vendor(dev) == PCI_VENDOR_BLUESTEEL && if (pci_get_vendor(dev) == PCI_VENDOR_BLUESTEEL &&
@ -2234,7 +2234,7 @@ ubsec_kprocess_modexp_sw(struct ubsec_softc *sc, struct cryptkop *krp, int hint)
/* /*
* Start computation of cr[C] = (cr[M] ^ cr[E]) mod cr[N] (hw normalization) * Start computation of cr[C] = (cr[M] ^ cr[E]) mod cr[N] (hw normalization)
*/ */
int static int
ubsec_kprocess_modexp_hw(struct ubsec_softc *sc, struct cryptkop *krp, int hint) ubsec_kprocess_modexp_hw(struct ubsec_softc *sc, struct cryptkop *krp, int hint)
{ {
struct ubsec_q2_modexp *me; struct ubsec_q2_modexp *me;

View File

@ -343,7 +343,7 @@ addr_cmp(u_int8_t a[], u_int8_t b[])
*(u_int32_t *)(a ) == *(u_int32_t *)(b)); *(u_int32_t *)(a ) == *(u_int32_t *)(b));
} }
void static void
wihap_sta_timeout(void *v) wihap_sta_timeout(void *v)
{ {
struct wihap_sta_info *sta = v; struct wihap_sta_info *sta = v;