fix compile breakage on drivers/scsi/wd7000.c

fix compile breakage on drivers/scsi/wd7000.c

Post by John Ki » Sat, 15 Feb 2003 23:40:14



This fixes compile breakage due to recent changes to scsi.h

John Kim

--- linux-2.5.60-bk4/drivers/scsi/wd7000.c      2003-02-10 13:38:59.000000000 -0500

        register unchar *cdb = (unchar *) SCpnt->cmnd;
        register unchar idlun;
        register short cdblen;
-       Adapter *host = (Adapter *) SCpnt->host->hostdata;
+       Adapter *host = (Adapter *) SCpnt->device->host->hostdata;

        cdblen = SCpnt->cmd_len;
-       idlun = ((SCpnt->target << 5) & 0xe0) | (SCpnt->lun & 7);
+       idlun = ((SCpnt->device->id << 5) & 0xe0) | (SCpnt->device->lun & 7);
        SCpnt->scsi_done = done;
        SCpnt->SCp.phase = 1;
-       scb = alloc_scbs(SCpnt->host, 1);
+       scb = alloc_scbs(SCpnt->device->host, 1);
        scb->idlun = idlun;
        memcpy(scb->cdb, cdb, cdblen);

                struct scatterlist *sg = (struct scatterlist *) SCpnt->request_buffer;
                unsigned i;

-               if (SCpnt->host->sg_tablesize == SG_NONE) {
+               if (SCpnt->device->host->sg_tablesize == SG_NONE) {
                        panic("wd7000_queuecommand: scatter/gather not supported.\n");
                }

  */
 static int wd7000_abort(Scsi_Cmnd * SCpnt)
 {
-       Adapter *host = (Adapter *) SCpnt->host->hostdata;
+       Adapter *host = (Adapter *) SCpnt->device->host->hostdata;

        if (inb(host->iobase + ASC_STAT) & INT_IM) {

 static int wd7000_host_reset(Scsi_Cmnd * SCpnt)
 {
-       Adapter *host = (Adapter *) SCpnt->host->hostdata;
+       Adapter *host = (Adapter *) SCpnt->device->host->hostdata;

        if (wd7000_adapter_reset(host) < 0)
                return FAILED;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/