RE: PROBLEM: LSIFC909 mpt card fails to recognize devices

From: Moore, Eric
Date: Mon Jan 08 2007 - 11:24:05 EST


On Sunday, January 07, 2007 11:07 AM, Justin Rosander wrote:
> Hi Eric,
> I tried recompiling the kernel per your instructions, but I got a
> failure here:
> CC [M] drivers/message/fusion/mptbase.o
> drivers/message/fusion/mptbase.c: In function 'mpt_resume':
> drivers/message/fusion/mptbase.c:1526: warning:
> ignoring return value of 'pci_enable_device', declared with
> attribute warn_unused_result
> CC [M] drivers/message/fusion/mptscsih.o
> drivers/message/fusion/mptscsih.c: In function
> 'mptscsih_initTarget':
> drivers/message/fusion/mptscsih.c:2691: error: 'lun'
> undeclared (first use in this function)
> drivers/message/fusion/mptscsih.c:2691: error: (Each
> undeclared identifier is reported only once
> drivers/message/fusion/mptscsih.c:2691: error: for
> each function it appears in.)
> make[4]: *** [drivers/message/fusion/mptscsih.o] Error 1
> make[3]: *** [drivers/message/fusion] Error 2
> make[2]: *** [drivers/message] Error 2
> make[1]: *** [drivers] Error 2
>
> Did I do something wrong?
> Regards,
> Justin
>

All you need to do is change lun to sdev->lun.

I fix'ed that compile error in a patch I posted last week on the lsml:

http://marc.theaimsgroup.com/?l=linux-scsi&m=116796872432421&w=2

Can you try again?

Eric Moore






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