From 494c18afd27167331d7a9f082aa867d7f10ddcb3 Mon Sep 17 00:00:00 2001 From: gpalmer Date: Wed, 3 May 1995 23:38:20 +0000 Subject: Try to make this work again. Peter's last changes left it like : loading kernel worm.o: Undefined symbol `_STUNIT' referenced from text segment I copied the STUNIT definition from the old scsiconf.c into this file to work around this problem. --- sys/scsi/worm.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/scsi/worm.c') diff --git a/sys/scsi/worm.c b/sys/scsi/worm.c index 317452d..151e0c7 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.3 1995/04/23 07:39:21 bde Exp $ + * $Id: worm.c,v 1.4 1995/04/23 22:07:56 gibbs Exp $ */ /* XXX This is PRELIMINARY. @@ -59,6 +59,8 @@ #include #include +#define STUNIT(DEV) ((minor(DEV)&0xF0) >> 4) /* 4 bit unit. */ + struct scsi_data { struct buf *buf_queue; /* the queue of pending IO operations */ @@ -240,7 +242,7 @@ wormstart(unit, flags) flags | SCSI_NOSLEEP) == SUCCESSFULLY_QUEUED) { } else { badnews: - printf("worm%d: oops not queued\n", unit); + printf("worm%ld: oops not queued\n", unit); bp->b_flags |= B_ERROR; bp->b_error = EIO; biodone(bp); @@ -305,8 +307,6 @@ int worm_open(dev_t dev, int flags, int fmt, struct proc *p, struct scsi_link *sc_link) { - struct scsi_data *worm = sc_link->sd; - if (sc_link->flags & SDEV_OPEN) return EBUSY; -- cgit v1.1