Re: next: CNIC: build fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2009-06-10 at 16:56 +0400, Alexander Beregalov wrote:
> Hi
> 
> drivers/net/cnic.c: In function 'cnic_start_hw':
> drivers/net/cnic.c:2391: error: implicit declaration of function 'pci_dev_get'
> 
> The problem is that kconfig selects CNIC without it dependencies
> 
> config SCSI_BNX2_ISCSI
>         tristate "Broadcom NetXtreme II iSCSI support"
>         select SCSI_ISCSI_ATTRS
>         select CNIC
> 
> config BNX2
>         tristate "Broadcom NetXtremeII support"
>         depends on PCI
>         select CRC32
>         select FW_LOADER
> 
> config CNIC
>         tristate "Broadcom CNIC support"
>         depends on BNX2
>         depends on UIO
> 
> $ egrep "CNIC|BNX|_PCI" .config
> # CONFIG_PCI is not set
> CONFIG_SCSI_BNX2_ISCSI=y
> CONFIG_CNIC=y

OK, so one way to fix this is to make BNX2_ISCSI depend on CNIC rather
than select it.

A better way might be to make CNIC select BNX and UIO and then make
BNX2_ISCSI depend on PCI as well.

James


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

[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux