[2.3.3] error in st.c

Scott Sibert (kernel@hollins.edu)
Mon, 17 May 1999 10:23:20 -0400


Compiling 2.3.3 I get:

make[2]: Entering directory `/o2/233/linux/drivers/scsi'
gcc -D__KERNEL__ -I/o2/233/linux/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -pipe -fno-strength-reduce -march=pentium
-mcpu=pentium -DCPU=586 -DMODULE -DMODVERSIONS -include
/o2/233/linux/include/linux/modversions.h -c -o st.o st.c
st.c: In function `st_attach':
st.c:3383: incompatible types in assignment
make[2]: *** [st.o] Error 1
make[2]: Leaving directory `/o2/233/linux/drivers/scsi'
make[1]: *** [_modsubdir_scsi] Error 2
make[1]: Leaving directory `/o2/233/linux/drivers'
make: *** [_mod_drivers] Error 2

Line in question:

if(i >= st_template.dev_max) panic ("scsi_devices corrupt (st)");

scsi_tapes[i].device = SDp;
if (SDp->scsi_level <= 2)
scsi_tapes[i].mt_status->mt_type = MT_ISSCSI1;
else
scsi_tapes[i].mt_status->mt_type = MT_ISSCSI2;

tpnt->devt = MKDEV(SCSI_TAPE_MAJOR, i);
tpnt->dirty = 0;
-> tpnt->waiting = NULL;
tpnt->in_use = 0;
tpnt->drv_buffer = 1; /* Try buffering if no mode sense */
tpnt->restr_dma = (SDp->host)->unchecked_isa_dma;
tpnt->density = 0;
tpnt->do_auto_lock = ST_AUTO_LOCK;
tpnt->can_bsr = ST_IN_FILE_POS;
tpnt->can_partitions = 0;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/