Skip to contentSkip to conversation

scsi: bnx2i depends on PCI.

PATCH In review Paul Mundt 2 participants 2 messages Jun 15, 2009

Subsystems (2)
lore
Share & tools
lore

Paul Mundt

author
#0 lore raw

PATCH 1/1 scsi: bnx2i depends on PCI.

This fixes up the CONFIG_PCI=n case, primarily triggered on allmodconfig/allyesconfig builds:

drivers/scsi/bnx2i/bnx2i_iscsi.c:760: error: implicit declaration of function 'pci_dev_get' make[4]: *** [drivers/scsi/bnx2i/bnx2i_iscsi.o] Error 1
make[3]: *** [drivers/scsi/bnx2i] Error 2

The entire driver is PCI dependent, so just reflect it in the Kconfig.

---

 drivers/scsi/bnx2i/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/scsi/bnx2i/Kconfig +1 -0
index 820d428..0d63146 100644
@@ -1,5 +1,6 @@
 config SCSI_BNX2_ISCSI
 	tristate "Broadcom NetXtreme II iSCSI support"
+	depends on PCI
 	select SCSI_ISCSI_ATTRS
 	select CNIC
 	---help---
#1 lore raw
Quoted 9 lines · Paul Mundt

This fixes up the CONFIG_PCI=n case, primarily triggered on allmodconfig/allyesconfig builds:

drivers/scsi/bnx2i/bnx2i_iscsi.c:760: error: implicit declaration of function 'pci_dev_get' make[4]: *** [drivers/scsi/bnx2i/bnx2i_iscsi.o] Error 1
make[3]: *** [drivers/scsi/bnx2i] Error 2

The entire driver is PCI dependent, so just reflect it in the Kconfig.

A similar patch is already in James' tree:

http://git.kernel.org/?p=linux/kernel/git/jejb/scsi-misc-2.6.git;a=commit;h=babdb788f7ec1a782a52240a5f6dae568f32565f

Quoted 20 lines

---

 drivers/scsi/bnx2i/Kconfig |    1 +
 1 file changed, 1 insertion(+)
drivers/scsi/bnx2i/Kconfig +1 -0
index 820d428..0d63146 100644
@@ -1,5 +1,6 @@
 config SCSI_BNX2_ISCSI
 	tristate "Broadcom NetXtreme II iSCSI support"
+	depends on PCI
 	select SCSI_ISCSI_ATTRS
 	select CNIC
 	---help---