* [PATCH] scsi: fix be2iscsi build
@ 2010-05-04 17:29 Randy Dunlap
0 siblings, 0 replies; only message in thread
From: Randy Dunlap @ 2010-05-04 17:29 UTC (permalink / raw)
To: scsi; +Cc: jejbscsi, Jayamohan Kallickal, akpm
From: Randy Dunlap <randy.dunlap@oracle.com>
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!
Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Jayamohan Kallickal <jayamohank@serverengines.com>
---
drivers/scsi/be2iscsi/Kconfig | 2 +-
drivers/scsi/be2iscsi/be_main.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
--- lnx-2634-rc6.orig/drivers/scsi/be2iscsi/be_main.h
+++ lnx-2634-rc6/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>
--- lnx-2634-rc6.orig/drivers/scsi/be2iscsi/Kconfig
+++ lnx-2634-rc6/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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-04 17:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-04 17:29 [PATCH] scsi: fix be2iscsi build Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).