linux-next: scsi build failure
Subsystems (2)
James Bottomley
maintainerQuoted 11 lines · Stephen Rothwell
Hi James,
The linux-next 20080331 build (m68k defconfig) failed like this:
drivers/scsi/gvp11.c:325: error: 'a3000_host' undeclared (first use in this function) make[3]: *** [drivers/scsi/gvp11.o] Error 1drivers/scsi/a2091.c:182: error: 'a3000_host' undeclared (first use in this function)presumably caused by commit
90609948bc0e9de545dfddf761f760382ea97b16("[SCSI] WD33C93: let platform stub override no_sync/fast/dma_mode"). I shall revert that commit from today's tree.
I think Thomas has been slightly careless with the cut and paste. This should be the fix.
James
---
drivers/scsi/gvp11.c +3 -3
@@ -322,9 +322,9 @@ int __init gvp11_detect(struct scsi_host_template *tpnt)*/ regs.SASR = &(DMA (instance)->SASR); regs.SCMD = &(DMA (instance)->SCMD); -HDATA (a3000_host)->no_sync =0xff ; -HDATA (a3000_host)->fast =0 ; -HDATA (a3000_host)->dma_mode =CTRL_DMA ; +HDATA (instance)->no_sync =0xff ; +HDATA (instance)->fast =0 ; +HDATA (instance)->dma_mode =CTRL_DMA ;wd33c93_init (instance, regs, dma_setup, dma_stop, (epc &GVP_SCSICLKMASK ) ?WD33C93_FS_8_10 :WD33C93_FS_12_15 );
drivers/scsi/mvme147.c +3 -3
@@ -82,9 +82,9 @@ int mvme147_detect(struct scsi_host_template *tpnt) mvme147_host->irq =MVME147_IRQ_SCSI_PORT ; regs.SASR = (volatile unsigned char *)0xfffe4000 ; regs.SCMD = (volatile unsigned char *)0xfffe4001 ; -HDATA (a3000_host)->no_sync =0xff ; -HDATA (a3000_host)->fast =0 ; -HDATA (a3000_host)->dma_mode =CTRL_DMA ; +HDATA (mvme147_host)->no_sync =0xff ; +HDATA (mvme147_host)->fast =0 ; +HDATA (mvme147_host)->dma_mode =CTRL_DMA ;wd33c93_init (mvme147_host, regs, dma_setup, dma_stop,WD33C93_FS_8_10 );if (request_irq (MVME147_IRQ_SCSI_PORT , mvme147_intr,0 ,"MVME147 SCSI PORT" , mvme147_intr))
Quoted 2 lines · James Bottomley
I think Thomas has been slightly careless with the cut and paste. This should be the fix.
oops, sorry for the breakage and thanks for fixing this.
Thomas.
Signature · 2 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ]