summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-16 08:48:39 +0000
committerphk <phk@FreeBSD.org>2002-10-16 08:48:39 +0000
commit32a73ad530917a145974381a8afcf1c282de9687 (patch)
tree89ff719c9c7ae5edd6c20e1323063539f8428e22 /sys
parent11d2dcbede9e1dd071a38a4d5e23bde0d7d39b6c (diff)
downloadFreeBSD-src-32a73ad530917a145974381a8afcf1c282de9687.zip
FreeBSD-src-32a73ad530917a145974381a8afcf1c282de9687.tar.gz
Be consistent about functions being static.
Spotted by: FlexeLint.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/mcd/mcd_isa.c2
-rw-r--r--sys/dev/mly/mly.c16
-rw-r--r--sys/dev/mpt/mpt_freebsd.c2
-rw-r--r--sys/dev/rp/rp.c6
-rw-r--r--sys/dev/rp/rp_isa.c2
-rw-r--r--sys/dev/rp/rp_pci.c2
-rw-r--r--sys/dev/si/si.c2
-rw-r--r--sys/dev/sym/sym_hipd.c12
-rw-r--r--sys/dev/twe/twe_freebsd.c2
-rw-r--r--sys/dev/ubsec/ubsec.c4
-rw-r--r--sys/dev/wi/wi_hostap.c2
11 files changed, 26 insertions, 26 deletions
diff --git a/sys/dev/mcd/mcd_isa.c b/sys/dev/mcd/mcd_isa.c
index 00d74b3..e0c9273 100644
--- a/sys/dev/mcd/mcd_isa.c
+++ b/sys/dev/mcd/mcd_isa.c
@@ -166,7 +166,7 @@ bad:
return (error);
}
-void
+static void
mcd_release_resources (device_t dev)
{
struct mcd_softc * sc;
diff --git a/sys/dev/mly/mly.c b/sys/dev/mly/mly.c
index f5ae328..de1d84b 100644
--- a/sys/dev/mly/mly.c
+++ b/sys/dev/mly/mly.c
@@ -219,7 +219,7 @@ mly_probe(device_t dev)
/********************************************************************************
* Initialise the controller and softc
*/
-int
+static int
mly_attach(device_t 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.
*/
-void
+static void
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
*/
-void
+static void
mly_done(struct mly_softc *sc)
{
struct mly_command *mc;
@@ -1656,7 +1656,7 @@ mly_complete(void *context, int pending)
/********************************************************************************
* Allocate a command.
*/
-int
+static int
mly_alloc_command(struct mly_softc *sc, struct mly_command **mcp)
{
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.
*/
-void
+static void
mly_release_command(struct mly_command *mc)
{
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
* interchangeably.
*/
-int
+static int
mly_cam_attach(struct mly_softc *sc)
{
struct cam_devq *devq;
@@ -1976,7 +1976,7 @@ mly_cam_attach(struct mly_softc *sc)
/********************************************************************************
* Detach from CAM
*/
-void
+static void
mly_cam_detach(struct mly_softc *sc)
{
int i;
@@ -2382,7 +2382,7 @@ mly_find_periph(struct mly_softc *sc, int bus, int target)
/********************************************************************************
* Name the device at (bus)(target)
*/
-int
+static int
mly_name_device(struct mly_softc *sc, int bus, int target)
{
struct cam_periph *periph;
diff --git a/sys/dev/mpt/mpt_freebsd.c b/sys/dev/mpt/mpt_freebsd.c
index c43a397..a3df9df 100644
--- a/sys/dev/mpt/mpt_freebsd.c
+++ b/sys/dev/mpt/mpt_freebsd.c
@@ -596,7 +596,7 @@ mpt_bus_reset(union ccb *ccb)
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 *);
-void
+static void
mpt_ctlop(mpt_softc_t *mpt, void *vmsg, u_int32_t reply)
{
MSG_DEFAULT_REPLY *dmsg = vmsg;
diff --git a/sys/dev/rp/rp.c b/sys/dev/rp/rp.c
index 3176ca4..148267a 100644
--- a/sys/dev/rp/rp.c
+++ b/sys/dev/rp/rp.c
@@ -955,7 +955,7 @@ rp_releaseresource(CONTROLLER_t *ctlp)
}
}
-int
+static int
rpopen(dev, flag, mode, td)
dev_t dev;
int flag, mode;
@@ -1114,7 +1114,7 @@ out2:
return(error);
}
-int
+static int
rpclose(dev, flag, mode, td)
dev_t dev;
int flag, mode;
@@ -1229,7 +1229,7 @@ rpdtrwakeup(void *chan)
wakeup(&rp->dtr_wait);
}
-int
+static int
rpioctl(dev, cmd, data, flag, td)
dev_t dev;
u_long cmd;
diff --git a/sys/dev/rp/rp_isa.c b/sys/dev/rp/rp_isa.c
index bbbdcb2..3e40c31 100644
--- a/sys/dev/rp/rp_isa.c
+++ b/sys/dev/rp/rp_isa.c
@@ -476,7 +476,7 @@ rp_isa_aiop2off(int aiop, int offset)
}
/* Read the int status for an ISA controller. */
-unsigned char
+static unsigned char
rp_isa_ctlmask(CONTROLLER_t *ctlp)
{
return sGetControllerIntStatus(rp_controller,ctlp);
diff --git a/sys/dev/rp/rp_pci.c b/sys/dev/rp/rp_pci.c
index fa25dea..0e10266 100644
--- a/sys/dev/rp/rp_pci.c
+++ b/sys/dev/rp/rp_pci.c
@@ -338,7 +338,7 @@ rp_pci_aiop2off(int aiop, int offset)
}
/* Read the int status for a PCI controller. */
-unsigned char
+static unsigned char
rp_pci_ctlmask(CONTROLLER_t *ctlp)
{
return sPCIGetControllerIntStatus(ctlp);
diff --git a/sys/dev/si/si.c b/sys/dev/si/si.c
index b576bbd..1eff206 100644
--- a/sys/dev/si/si.c
+++ b/sys/dev/si/si.c
@@ -1986,7 +1986,7 @@ si_lstart(void *arg)
/*
* Stop output on a line. called at spltty();
*/
-void
+static void
si_stop(struct tty *tp, int rw)
{
volatile struct si_channel *ccbp;
diff --git a/sys/dev/sym/sym_hipd.c b/sys/dev/sym/sym_hipd.c
index d1671cb..31e8b9c 100644
--- a/sys/dev/sym/sym_hipd.c
+++ b/sys/dev/sym/sym_hipd.c
@@ -4305,7 +4305,7 @@ reset_all:
/*
* 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);
@@ -4320,7 +4320,7 @@ void sym_int_sto (hcb_p np)
/*
* 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));
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.
*/
-void sym_int_sir (hcb_p np)
+static void sym_int_sir (hcb_p np)
{
u_char num = INB (nc_dsps);
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.
*/
-int sym_cam_attach(hcb_p np)
+static int sym_cam_attach(hcb_p np)
{
struct cam_devq *devq = 0;
struct cam_sim *sim = 0;
@@ -9730,7 +9730,7 @@ fail:
/*
* 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
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);
#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
/*
diff --git a/sys/dev/twe/twe_freebsd.c b/sys/dev/twe/twe_freebsd.c
index 5187c25..3e5c892 100644
--- a/sys/dev/twe/twe_freebsd.c
+++ b/sys/dev/twe/twe_freebsd.c
@@ -692,7 +692,7 @@ twed_strategy(twe_bio *bp)
/********************************************************************************
* System crashdump support
*/
-int
+static int
twed_dump(dev_t dev, void *virtual, vm_offset_t physical, off_t offset, size_t length)
{
diff --git a/sys/dev/ubsec/ubsec.c b/sys/dev/ubsec/ubsec.c
index 95b629f..90df6d3 100644
--- a/sys/dev/ubsec/ubsec.c
+++ b/sys/dev/ubsec/ubsec.c
@@ -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,
0, "Broadcom driver: max ops to batch w/o interrupt");
-int
+static int
ubsec_probe(device_t dev)
{
if (pci_get_vendor(dev) == PCI_VENDOR_BLUESTEEL &&
@@ -2234,7 +2234,7 @@ errout:
/*
* 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)
{
struct ubsec_q2_modexp *me;
diff --git a/sys/dev/wi/wi_hostap.c b/sys/dev/wi/wi_hostap.c
index fea033f..5248cc1 100644
--- a/sys/dev/wi/wi_hostap.c
+++ b/sys/dev/wi/wi_hostap.c
@@ -343,7 +343,7 @@ addr_cmp(u_int8_t a[], u_int8_t b[])
*(u_int32_t *)(a ) == *(u_int32_t *)(b));
}
-void
+static void
wihap_sta_timeout(void *v)
{
struct wihap_sta_info *sta = v;
OpenPOWER on IntegriCloud