Skip to contentSkip to conversation

be2iscsi: patch from Randy Dunlap

PATCH In review Jayamohan Kallickal 3 participants 3 messages Jul 21, 2010 – Jul 27, 2010

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

PATCH 17/19 be2iscsi: patch from Randy Dunlap

This patch add NET because be2iscsi is using sysfs_format_mac function Found and patch originally submitted by Randy Dunlap

---
 drivers/scsi/be2iscsi/Kconfig   |    2 +-
 drivers/scsi/be2iscsi/be_main.h |    1 +
 2 files changed, 2 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/Kconfig +1 -1
index 2952fcd..9d57142 100644
@@ -1,7 +1,7 @@
 config BE2ISCSI
 	tristate "ServerEngines' 10Gbps iSCSI - BladeEngine 2"
 	depends on PCI && SCSI
-	select SCSI_ISCSI_ATTRS
+	select SCSI_ISCSI_ATTRS && NET
 
 	help
 	This driver implements the iSCSI functionality for ServerEngines'
drivers/scsi/be2iscsi/be_main.h +1 -0
index b38af64..48b7d4d 100644
@@ -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>
Signature · 1 line
1.6.5.2
#1 lore raw
Quoted 15 lines · Jayamohan Kallickal

This patch add NET because be2iscsi is using sysfs_format_mac function Found and patch originally submitted by Randy Dunlap

---
  drivers/scsi/be2iscsi/Kconfig   |    2 +-
  drivers/scsi/be2iscsi/be_main.h |    1 +
  2 files changed, 2 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/Kconfig +0 -0
index 2952fcd..9d57142 100644

drivers/scsi/be2iscsi/Kconfig line 5

Quoted 6 lines
drivers/scsi/be2iscsi/Kconfig +1 -1
@@ -1,7 +1,7 @@
  config BE2ISCSI
  	tristate "ServerEngines' 10Gbps iSCSI - BladeEngine 2"
  	depends on PCI&&  SCSI
-	select SCSI_ISCSI_ATTRS
+	select SCSI_ISCSI_ATTRS&&  NET
 

Bah. Ok the code in the patches looks ok, but with this patch I get:

scripts/kconfig/mconf arch/x86/Kconfig
drivers/scsi/be2iscsi/Kconfig:4: invalid option
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2

when I try to do

make menuconfig
or
make oldconfig

#2 lore raw
Quoted 30 lines · Mike Christie
Quoted 15 lines · Jayamohan Kallickal

This patch add NET because be2iscsi is using sysfs_format_mac function Found and patch originally submitted by Randy Dunlap

---
  drivers/scsi/be2iscsi/Kconfig   |    2 +-
  drivers/scsi/be2iscsi/be_main.h |    1 +
  2 files changed, 2 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/Kconfig +0 -0
index 2952fcd..9d57142 100644

drivers/scsi/be2iscsi/Kconfig line 5

Quoted 6 lines
drivers/scsi/be2iscsi/Kconfig +1 -1
@@ -1,7 +1,7 @@
  config BE2ISCSI
  	tristate "ServerEngines' 10Gbps iSCSI - BladeEngine 2"
  	depends on PCI&&  SCSI
-	select SCSI_ISCSI_ATTRS
+	select SCSI_ISCSI_ATTRS&&  NET
 

Bah. Ok the code in the patches looks ok, but with this patch I get:

scripts/kconfig/mconf arch/x86/Kconfig
drivers/scsi/be2iscsi/Kconfig:4: invalid option
make[1]: *** [menuconfig] Error 1
make: *** [menuconfig] Error 2

Quoted 5 lines

when I try to do

make menuconfig
or
make oldconfig

That's because the patch is wrong. The && NET shouldn't be on the select, it should be on the depends.

So, next time, I want to see a

From: A.N Author <[email protected]>

at the front of the patch, so I pick up the correct authorship, and the rest of the change log they sent in, plus comments about any fixes or changes you made, then a signoff set.

James