Skip to contentSkip to conversation

scsi: Fix SRP_ATTRS Kconfig

PATCH New Brian King 1 participant 1 message Jul 30, 2007 SCSI

lore
Share & tools
lore

Brian King

author
#0 lore raw

PATCH 1/1 scsi: Fix SRP_ATTRS Kconfig

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(-)
drivers/scsi/Kconfig renamed from drivers/scsi/Kconfig~scsi_tgt_kconfig_fix +2 -1
diff -puN drivers/scsi/Kconfig~scsi_tgt_kconfig_fix drivers/scsi/Kconfig
@@ -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
 	help
 	  If you wish to export transport-specific information about
 	  each attached SRP device to sysfs, say Y.

_