summaryrefslogtreecommitdiffstats
path: root/sys/scsi
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-12-17 21:23:44 +0000
committerphk <phk@FreeBSD.org>1995-12-17 21:23:44 +0000
commit02cbd66c6d015a152ab4b0c15cb19a4d854dc78f (patch)
treed9e9aadac9903141119e844926290aa59d3064c2 /sys/scsi
parentb3abae23ca40c1ec028b9355289030d7071a4102 (diff)
downloadFreeBSD-src-02cbd66c6d015a152ab4b0c15cb19a4d854dc78f.zip
FreeBSD-src-02cbd66c6d015a152ab4b0c15cb19a4d854dc78f.tar.gz
Staticize.
Unstaticize a function in scsi/scsi_base that was used, with an undocumented option. My last count on the LINT kernel shows: Total symbols: 3647 unref symbols: 463 undef symbols: 4 1 ref symbols: 1751 2 ref symbols: 485 Approaching the pain threshold now.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/scsi_base.c9
-rw-r--r--sys/scsi/scsiconf.h5
2 files changed, 8 insertions, 6 deletions
diff --git a/sys/scsi/scsi_base.c b/sys/scsi/scsi_base.c
index d729650..1287619 100644
--- a/sys/scsi/scsi_base.c
+++ b/sys/scsi/scsi_base.c
@@ -8,7 +8,7 @@
* file.
*
* Written by Julian Elischer (julian@dialix.oz.au)
- * $Id: scsi_base.c,v 1.32 1995/12/07 12:47:46 davidg Exp $
+ * $Id: scsi_base.c,v 1.33 1995/12/14 09:54:26 phk Exp $
*/
#define SPLSD splbio
@@ -39,7 +39,6 @@ static void show_scsi_xs (struct scsi_xfer *);
#ifdef notyet
static int scsi_sense_qualifiers (struct scsi_xfer *, int *, int *);
-static errval scsi_change_def( struct scsi_link *sc_link, u_int32 flags);
#endif
static struct scsi_xfer *next_free_xs;
@@ -231,11 +230,11 @@ scsi_test_unit_ready(sc_link, flags)
flags));
}
-#ifdef notyet
+#ifdef SCSI_2_DEF
/*
* Do a scsi operation, asking a device to run as SCSI-II if it can.
*/
-static errval
+errval
scsi_change_def(sc_link, flags)
struct scsi_link *sc_link;
u_int32 flags;
@@ -256,7 +255,7 @@ scsi_change_def(sc_link, flags)
NULL,
flags));
}
-#endif
+#endif /* SCSI_2_DEF */
/*
* Do a scsi operation asking a device what it is
diff --git a/sys/scsi/scsiconf.h b/sys/scsi/scsiconf.h
index 3107588..30e70a7 100644
--- a/sys/scsi/scsiconf.h
+++ b/sys/scsi/scsiconf.h
@@ -14,7 +14,7 @@
*
* Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992
*
- * $Id: scsiconf.h,v 1.34 1995/12/14 09:54:30 phk Exp $
+ * $Id: scsiconf.h,v 1.35 1995/12/14 19:38:38 bde Exp $
*/
#ifndef SCSI_SCSICONF_H
#define SCSI_SCSICONF_H 1
@@ -476,6 +476,9 @@ void scsi_configure_finish __P((void));
void ukinit __P((void));
+#ifdef SCSI_2_DEF
+errval scsi_change_def( struct scsi_link *sc_link, u_int32 flags);
+#endif
#endif /* KERNEL */
#define SCSI_EXTERNALLEN (sizeof(struct scsi_link))
OpenPOWER on IntegriCloud