diff options
author | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1995-12-08 23:23:00 +0000 |
commit | a69d1dfbcb7bc187703b1767f289aba2bd4edbb6 (patch) | |
tree | 0408fdddf8ea8eeab5dc960ead9a7c96a2e301bd /sys/scsi | |
parent | 5a5b07fa54887595e0725dba442af441c842786a (diff) | |
download | FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.zip FreeBSD-src-a69d1dfbcb7bc187703b1767f289aba2bd4edbb6.tar.gz |
Julian forgot to make the *devsw structures static.
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/cd.c | 6 | ||||
-rw-r--r-- | sys/scsi/ch.c | 4 | ||||
-rw-r--r-- | sys/scsi/od.c | 6 | ||||
-rw-r--r-- | sys/scsi/pt.c | 4 | ||||
-rw-r--r-- | sys/scsi/sctarg.c | 4 | ||||
-rw-r--r-- | sys/scsi/sd.c | 6 | ||||
-rw-r--r-- | sys/scsi/ssc.c | 4 | ||||
-rw-r--r-- | sys/scsi/st.c | 6 | ||||
-rw-r--r-- | sys/scsi/su.c | 4 | ||||
-rw-r--r-- | sys/scsi/uk.c | 4 | ||||
-rw-r--r-- | sys/scsi/worm.c | 4 |
11 files changed, 26 insertions, 26 deletions
diff --git a/sys/scsi/cd.c b/sys/scsi/cd.c index 9fd6a4a..6e79c6d 100644 --- a/sys/scsi/cd.c +++ b/sys/scsi/cd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@tfs.com) Sept 1992 * - * $Id: cd.c,v 1.47 1995/11/29 14:40:51 julian Exp $ + * $Id: cd.c,v 1.48 1995/12/08 11:18:38 julian Exp $ */ #define SPLCD splbio @@ -70,11 +70,11 @@ static d_strategy_t cdstrategy; #define CDEV_MAJOR 15 #define BDEV_MAJOR 6 extern struct cdevsw cd_cdevsw; -struct bdevsw cd_bdevsw = +static struct bdevsw cd_bdevsw = { cdopen, cdclose, cdstrategy, cdioctl, /*6*/ nxdump, cdsize, 0, "cd", &cd_cdevsw, -1 }; -struct cdevsw cd_cdevsw = +static struct cdevsw cd_cdevsw = { cdopen, cdclose, rawread, nowrite, /*15*/ cdioctl, nostop, nullreset, nodevtotty,/* cd */ seltrue, nommap, cdstrategy, "cd", diff --git a/sys/scsi/ch.c b/sys/scsi/ch.c index 360a8c8..8bff2c2 100644 --- a/sys/scsi/ch.c +++ b/sys/scsi/ch.c @@ -2,7 +2,7 @@ * Written by grefen@convex.com (probably moved by now) * Based on scsi drivers by Julian Elischer (julian@tfs.com) * - * $Id: ch.c,v 1.25 1995/12/06 23:44:14 bde Exp $ + * $Id: ch.c,v 1.26 1995/12/08 11:18:40 julian Exp $ */ #include <sys/types.h> @@ -80,7 +80,7 @@ static d_close_t chclose; static d_ioctl_t chioctl; #define CDEV_MAJOR 17 -struct cdevsw ch_cdevsw = +static struct cdevsw ch_cdevsw = { chopen, chclose, noread, nowrite, /*17*/ chioctl, nostop, nullreset, nodevtotty,/* ch */ noselect, nommap, nostrat, "ch", NULL, -1 }; diff --git a/sys/scsi/od.c b/sys/scsi/od.c index 568d343..7fe37b4 100644 --- a/sys/scsi/od.c +++ b/sys/scsi/od.c @@ -28,7 +28,7 @@ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: od.c,v 1.5 1995/11/29 14:40:57 julian Exp $ + * $Id: od.c,v 1.6 1995/12/08 11:18:45 julian Exp $ */ /* @@ -124,11 +124,11 @@ static d_strategy_t odstrategy; #define CDEV_MAJOR 70 #define BDEV_MAJOR 20 extern struct cdevsw od_cdevsw; -struct bdevsw od_bdevsw = +static struct bdevsw od_bdevsw = { odopen, odclose, odstrategy, odioctl, /*20*/ nxdump, odsize, 0, "od", &od_cdevsw, -1 }; -struct cdevsw od_cdevsw = +static struct cdevsw od_cdevsw = { odopen, odclose, rawread, rawwrite, /*70*/ odioctl, nostop, nullreset, nodevtotty, seltrue, nommap, odstrategy, "od", diff --git a/sys/scsi/pt.c b/sys/scsi/pt.c index 12fa2fb..b00cc26 100644 --- a/sys/scsi/pt.c +++ b/sys/scsi/pt.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: pt.c,v 1.8 1995/11/29 14:40:59 julian Exp $ + * $Id: pt.c,v 1.9 1995/12/08 11:18:48 julian Exp $ */ /* @@ -73,7 +73,7 @@ static d_ioctl_t ptioctl; static d_strategy_t ptstrategy; #define CDEV_MAJOR 61 -struct cdevsw pt_cdevsw = +static struct cdevsw pt_cdevsw = { ptopen, ptclose, rawread, rawwrite, /*61*/ ptioctl, nostop, nullreset, nodevtotty,/* pt */ seltrue, nommap, ptstrategy, "pt", NULL, -1 }; diff --git a/sys/scsi/sctarg.c b/sys/scsi/sctarg.c index de3e748..a4045a0 100644 --- a/sys/scsi/sctarg.c +++ b/sys/scsi/sctarg.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sctarg.c,v 1.8 1995/11/29 14:41:00 julian Exp $ + * $Id: sctarg.c,v 1.9 1995/12/08 11:18:51 julian Exp $ */ /* @@ -79,7 +79,7 @@ static d_ioctl_t sctargioctl; static d_strategy_t sctargstrategy; #define CDEV_MAJOR 65 -struct cdevsw sctarg_cdevsw = +static struct cdevsw sctarg_cdevsw = { sctargopen, sctargclose, rawread, rawwrite, /*65*/ sctargioctl, nostop, nullreset, nodevtotty,/* sctarg */ seltrue, nommap, sctargstrategy, "sctarg", NULL, -1 }; diff --git a/sys/scsi/sd.c b/sys/scsi/sd.c index fa70096..92604f8 100644 --- a/sys/scsi/sd.c +++ b/sys/scsi/sd.c @@ -14,7 +14,7 @@ * * Ported to run under 386BSD by Julian Elischer (julian@dialix.oz.au) Sept 1992 * - * $Id: sd.c,v 1.75 1995/12/07 12:47:48 davidg Exp $ + * $Id: sd.c,v 1.76 1995/12/08 11:18:53 julian Exp $ */ #define SPLSD splbio @@ -105,11 +105,11 @@ static d_strategy_t sdstrategy; #define CDEV_MAJOR 13 #define BDEV_MAJOR 4 extern struct cdevsw sd_cdevsw; /* hold off the complaints for a second */ -struct bdevsw sd_bdevsw = +static struct bdevsw sd_bdevsw = { sdopen, sdclose, sdstrategy, sdioctl, /*4*/ sddump, sdsize, 0, "sd", &sd_cdevsw, -1 }; -struct cdevsw sd_cdevsw = +static struct cdevsw sd_cdevsw = { sdopen, sdclose, rawread, rawwrite, /*13*/ sdioctl, nostop, nullreset, nodevtotty, seltrue, nommap, sdstrategy, "sd", diff --git a/sys/scsi/ssc.c b/sys/scsi/ssc.c index 2a0988b..7c1a62e 100644 --- a/sys/scsi/ssc.c +++ b/sys/scsi/ssc.c @@ -49,7 +49,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. *End copyright - * $Id: ssc.c,v 1.7 1995/12/05 19:36:33 bde Exp $ + * $Id: ssc.c,v 1.8 1995/12/08 11:18:55 julian Exp $ */ #include <sys/types.h> @@ -75,7 +75,7 @@ extern d_close_t suclose; extern d_ioctl_t suioctl; #define CDEV_MAJOR 49 -struct cdevsw ssc_cdevsw = +static struct cdevsw ssc_cdevsw = { sscopen, sscclose, noread, nowrite, /*49*/ sscioctl, nostop, nullreset, nodevtotty, noselect, nxmmap, nostrategy, "ssc", NULL, -1 }; diff --git a/sys/scsi/st.c b/sys/scsi/st.c index 86cb8c6..dbb814e 100644 --- a/sys/scsi/st.c +++ b/sys/scsi/st.c @@ -12,7 +12,7 @@ * on the understanding that TFS is not responsible for the correct * functioning of this software in any circumstances. * - * $Id: st.c,v 1.48 1995/12/06 23:44:23 bde Exp $ + * $Id: st.c,v 1.49 1995/12/08 11:18:59 julian Exp $ */ /* @@ -269,11 +269,11 @@ d_strategy_t ststrategy; #define CDEV_MAJOR 14 #define BDEV_MAJOR 5 -struct bdevsw st_bdevsw = +static struct bdevsw st_bdevsw = { stopen, stclose, ststrategy, stioctl, /*5*/ nxdump, zerosize, 0 }; -struct cdevsw st_cdevsw = +static struct cdevsw st_cdevsw = { stopen, stclose, rawread, rawwrite, /*14*/ stioctl, nostop, nullreset, nodevtotty,/* st */ seltrue, nommap, ststrategy }; diff --git a/sys/scsi/su.c b/sys/scsi/su.c index 1bbefa1..616277e 100644 --- a/sys/scsi/su.c +++ b/sys/scsi/su.c @@ -44,7 +44,7 @@ * SUCH DAMAGE. *End copyright * - * $Id: su.c,v 1.8 1995/11/29 14:41:06 julian Exp $ + * $Id: su.c,v 1.9 1995/12/08 11:19:01 julian Exp $ * * Tabstops 4 * XXX devfs entries for this device should be handled by generic scsiconfig @@ -74,7 +74,7 @@ static d_write_t suwrite; static d_select_t suselect; static d_strategy_t sustrategy; -struct cdevsw su_cdevsw = +static struct cdevsw su_cdevsw = { suopen, suclose, suread, suwrite, /*18*/ suioctl, nostop, nullreset, nodevtotty,/* scsi */ suselect, nxmmap, sustrategy, "su", NULL, -1 }; diff --git a/sys/scsi/uk.c b/sys/scsi/uk.c index 53302e2..f144e48 100644 --- a/sys/scsi/uk.c +++ b/sys/scsi/uk.c @@ -2,7 +2,7 @@ * Driver for a device we can't identify. * by Julian Elischer (julian@tfs.com) * - * $Id: uk.c,v 1.11 1995/11/29 14:41:07 julian Exp $ + * $Id: uk.c,v 1.12 1995/12/08 11:19:03 julian Exp $ * * If you find that you are adding any code to this file look closely * at putting it in "scsi_driver.c" instead. @@ -24,7 +24,7 @@ static d_close_t ukclose; static d_ioctl_t ukioctl; #define CDEV_MAJOR 31 -struct cdevsw uk_cdevsw = +static struct cdevsw uk_cdevsw = { ukopen, ukclose, noread, nowrite, /*31*/ ukioctl, nostop, nullreset, nodevtotty,/* unknown */ seltrue, nommap, NULL, "uk" ,NULL, -1 }; diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c index b065bf8..7b4c0b0 100644 --- a/sys/scsi/worm.c +++ b/sys/scsi/worm.c @@ -37,7 +37,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: worm.c,v 1.13 1995/12/05 07:14:27 julian Exp $ + * $Id: worm.c,v 1.14 1995/12/08 11:19:07 julian Exp $ */ /* XXX This is PRELIMINARY. @@ -90,7 +90,7 @@ static d_ioctl_t wormioctl; d_strategy_t wormstrategy; #define CDEV_MAJOR 62 -struct cdevsw worm_cdevsw = +static struct cdevsw worm_cdevsw = { wormopen, wormclose, rawread, rawwrite, /*62*/ wormioctl, nostop, nullreset, nodevtotty,/* worm */ seltrue, nommap, wormstrategy }; |