Skip to contentSkip to conversation

scsi: Fix SRP_ATTRS Kconfig

PATCH FUJITA Tomonori 1 participant 1 message Jul 31, 2007 1 message not in the archive SCSI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 11858119293805-patch-mail.ibm.com

#1 lore raw

From: Brian King <[email protected]>
Subject: [PATCH 1/1] scsi: Fix SRP_ATTRS Kconfig
Date: Mon, 30 Jul 2007 11:12:10 -0500

Quoted 20 lines

Since the srp transport class was added, if scsi tgt support is not selected, the current Kconfig allows for enabling a dependent device driver, such as ibmvscsi, which does a select of SCSI_SRP_ATTRS. This does not, however, enable SCSI_TGT also. This fixes this up to prevent the following build problem:

ERROR: ".scsi_tgt_it_nexus_create" [drivers/scsi/scsi_transport_srp.ko] undefined!
ERROR: ".scsi_tgt_it_nexus_destroy" [drivers/scsi/scsi_transport_srp.ko] undefined!

---

 scsi-pending-2.6.git-bjking1/drivers/scsi/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff -puN drivers/scsi/Kconfig~scsi_tgt_kconfig_fix drivers/scsi/Kconfig

drivers/scsi/Kconfig source "drivers/scsi/libsas/Kconfig" · line 295

Quoted 6 lines
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig~scsi_tgt_kconfig_fix +2 -1
@@ -291,7 +291,8 @@ source "drivers/scsi/libsas/Kconfig"
 
 config SCSI_SRP_ATTRS
 	tristate "SRP Transport Attributes"
-	depends on SCSI && SCSI_TGT
+	depends on SCSI
+	select SCSI_TGT

Thanks, but I guess that I should have made the srp transport class independent of tgt since most people want only initiator support. I'll send a patch to do that soon.