aboutsummaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1995-12-17 21:23:44 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1995-12-17 21:23:44 +0000
commit27a0b398a7a9f3049bca4def5760930e375f6cbd (patch)
treed9e9aadac9903141119e844926290aa59d3064c2 /sys/scsi
parentcd239a8a3ee50b354aeefddc23c91fcb0191a9de (diff)
downloadsrc-27a0b398a7a9f3049bca4def5760930e375f6cbd.tar.gz
src-27a0b398a7a9f3049bca4def5760930e375f6cbd.zip
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.
Notes
Notes: svn path=/head/; revision=12913
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 d7296507a77b..1287619b1aeb 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 310758847fc5..30e70a76a1eb 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))