Skip to contentSkip to conversation

scsi: fix be2iscsi build

PATCH In review [email protected] 1 participant 1 message May 24, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 24/26 scsi: fix be2iscsi build

From: Randy Dunlap <[email protected]>

be2iscsi driver should #include linux/if_ether.h since it uses sysfs_format_mac().

It should also depend on NET since it selects SCSI_ISCSI_ATTRS, which depends on NET.

These changes fix a build error when CONFIG_NET is not enabled:
ERROR: "sysfs_format_mac" [drivers/scsi/be2iscsi/be2iscsi.ko] undefined!

Cc Jayamohan Kallickal <[email protected]>
Cc James Bottomley <[email protected]>

---

 drivers/scsi/be2iscsi/Kconfig   |    2 +-
 drivers/scsi/be2iscsi/be_main.h |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/be2iscsi/Kconfig renamed from drivers/scsi/be2iscsi/Kconfig~scsi-fix-be2iscsi-build +1 -1
diff -puN drivers/scsi/be2iscsi/Kconfig~scsi-fix-be2iscsi-build drivers/scsi/be2iscsi/Kconfig
@@ -1,6 +1,6 @@
 config BE2ISCSI
 	tristate "ServerEngines' 10Gbps iSCSI - BladeEngine 2"
-	depends on PCI && SCSI
+	depends on PCI && SCSI && NET
 	select SCSI_ISCSI_ATTRS
 
 	help
drivers/scsi/be2iscsi/be_main.h renamed from drivers/scsi/be2iscsi/be_main.h~scsi-fix-be2iscsi-build +1 -0
diff -puN drivers/scsi/be2iscsi/be_main.h~scsi-fix-be2iscsi-build drivers/scsi/be2iscsi/be_main.h
@@ -23,6 +23,7 @@
 
 #include <linux/kernel.h>
 #include <linux/pci.h>
+#include <linux/if_ether.h>
 #include <linux/in.h>
 #include <scsi/scsi.h>
 #include <scsi/scsi_cmnd.h>

_