Subject: Re: linux-next: Tree for Aug 30 (scsi/qla4xxx)

From: Mike Christie <[email-masked]>
Date: Wed, 31 Aug 2011 21:53:40 -0500

On 08/31/2011 03:45 PM, Randy Dunlap wrote:
> On Tue, 30 Aug 2011 17:16:05 +1000 Stephen Rothwell wrote:
> 
>> Hi all,
> 
> [Sorry about the delay.. slow build machine.
> Please ignore if this is already known/fixed.]
> 
> 
> (on i386)
> 
> ERROR: "iscsi_boot_create_target" [drivers/scsi/qla4xxx/qla4xxx.ko] undefined!
> ERROR: "iscsi_boot_create_ethernet" [drivers/scsi/qla4xxx/qla4xxx.ko] undefined!
> ERROR: "iscsi_boot_create_host_kset" [drivers/scsi/qla4xxx/qla4xxx.ko] undefined!
> ERROR: "iscsi_boot_create_initiator" [drivers/scsi/qla4xxx/qla4xxx.ko] undefined!
> ERROR: "iscsi_boot_destroy_kset" [drivers/scsi/qla4xxx/qla4xxx.ko] undefined!
> 
> when CONFIG_ISCSI_BOOT_SYSFS is not enabled.
> 

We need the attached patch.
>>From 64915c90128ebef61f076f58af3cba75288fae94 Mon Sep 17 00:00:00 2001
From: Mike Christie <[email-masked]>
Date: Wed, 31 Aug 2011 21:51:42 -0500
Subject: [PATCH] qla4xxx: select iscsi boot sysfs attrs

qla4xxx now uses iscsi_boot_sysfs to export the targets used
for boot to sysfs. It needs to select that config option
to make sure that module is also built.

Signed-off-by: Mike Christie <[email-masked]>
---
 drivers/scsi/qla4xxx/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/qla4xxx/Kconfig b/drivers/scsi/qla4xxx/Kconfig
index 2c33ce6..5b1aed4 100644
--- a/drivers/scsi/qla4xxx/Kconfig
+++ b/drivers/scsi/qla4xxx/Kconfig
@@ -2,6 +2,7 @@ config SCSI_QLA_ISCSI
 	tristate "QLogic ISP4XXX and ISP82XX host adapter family support"
 	depends on PCI && SCSI
 	select SCSI_ISCSI_ATTRS
+	select ISCSI_BOOT_SYSFS
 	---help---
 	This driver supports the QLogic 40xx (ISP4XXX) and 8022 (ISP82XX)
 	iSCSI host adapter family.
-- 
1.7.6