diff options
author | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-09-28 17:15:38 +0000 |
commit | 1dfc2c167f0c0ee95c98088b2c05b50350b97ddb (patch) | |
tree | 072f805928e7e540a4d2c0a3a7ec37f7529204a0 /sys/cam | |
parent | 523f5243860c40ec5c7a3e961080d6035dbcb435 (diff) | |
download | FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.zip FreeBSD-src-1dfc2c167f0c0ee95c98088b2c05b50350b97ddb.tar.gz |
Be consistent about "static" functions: if the function is marked
static in its prototype, mark it static at the definition too.
Inspired by: FlexeLint warning #512
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_cd.c | 2 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ch.c | 2 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_low.c | 8 | ||||
-rw-r--r-- | sys/cam/scsi/scsi_ses.c | 14 |
4 files changed, 13 insertions, 13 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c index 99ad08f..e9bf89d 100644 --- a/sys/cam/scsi/scsi_cd.c +++ b/sys/cam/scsi/scsi_cd.c @@ -302,7 +302,7 @@ struct cdchanger { static STAILQ_HEAD(changerlist, cdchanger) changerq; -void +static void cdinit(void) { cam_status status; diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index d876400..fcbb53b 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -226,7 +226,7 @@ static struct cdevsw ch_cdevsw = { /* flags */ 0, }; -void +static void chinit(void) { cam_status status; diff --git a/sys/cam/scsi/scsi_low.c b/sys/cam/scsi/scsi_low.c index 59b1c59..610746e 100644 --- a/sys/cam/scsi/scsi_low.c +++ b/sys/cam/scsi/scsi_low.c @@ -4362,7 +4362,7 @@ io_resume: /********************************************************** * TAG operations **********************************************************/ -int +static int scsi_low_alloc_qtag(cb) struct slccb *cb; { @@ -4399,7 +4399,7 @@ found: #endif /* SCSI_LOW_ALT_QTAG_ALLOCATE */ } -int +static int scsi_low_dealloc_qtag(cb) struct slccb *cb; { @@ -4430,7 +4430,7 @@ scsi_low_dealloc_qtag(cb) return 0; } -struct slccb * +static struct slccb * scsi_low_revoke_ccb(slp, cb, fdone) struct scsi_low_softc *slp; struct slccb *cb; @@ -4483,7 +4483,7 @@ scsi_low_revoke_ccb(slp, cb, fdone) } } -void +static void scsi_low_reset_nexus_lun(slp, li, fdone) struct scsi_low_softc *slp; struct lun_info *li; diff --git a/sys/cam/scsi/scsi_ses.c b/sys/cam/scsi/scsi_ses.c index c469763..904e380 100644 --- a/sys/cam/scsi/scsi_ses.c +++ b/sys/cam/scsi/scsi_ses.c @@ -191,7 +191,7 @@ static struct cdevsw ses_cdevsw = /* flags */ 0, }; -void +static void sesinit(void) { cam_status status; @@ -1642,7 +1642,7 @@ static char *safte_2little = "Too Little Data Returned (%d) at line %d\n"; } -int +static int safte_softc_init(ses_softc_t *ssc, int doinit) { int err, i, r; @@ -1719,7 +1719,7 @@ safte_softc_init(ses_softc_t *ssc, int doinit) return (0); } -int +static int safte_init_enc(ses_softc_t *ssc) { int err; @@ -1734,13 +1734,13 @@ safte_init_enc(ses_softc_t *ssc) return (err); } -int +static int safte_get_encstat(ses_softc_t *ssc, int slpflg) { return (safte_rdstat(ssc, slpflg)); } -int +static int safte_set_encstat(ses_softc_t *ssc, uint8_t encstat, int slpflg) { struct scfg *cc = ssc->ses_private; @@ -1764,7 +1764,7 @@ safte_set_encstat(ses_softc_t *ssc, uint8_t encstat, int slpflg) return (wrbuf16(ssc, SAFTE_WT_GLOBAL, cc->flag1, cc->flag2, 0, slpflg)); } -int +static int safte_get_objstat(ses_softc_t *ssc, ses_objstat *obp, int slpflg) { int i = (int)obp->obj_id; @@ -1783,7 +1783,7 @@ safte_get_objstat(ses_softc_t *ssc, ses_objstat *obp, int slpflg) } -int +static int safte_set_objstat(ses_softc_t *ssc, ses_objstat *obp, int slp) { int idx, err; |