scsi: Fix SRP_ATTRS Kconfig
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
Kconfigallows for enabling a dependent device driver, such as ibmvscsi, which does a select ofSCSI_SRP_ATTRS. This does not, however, enableSCSI_TGTalso. 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!Signed-off-by Brian King <[email protected]>---
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_fixdrivers/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.