Skip to contentSkip to conversation

scsi: fix kconfig dependency warnings

PATCH In review Randy Dunlap 2 participants 3 messages Aug 17, 2010 – Aug 18, 2010

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

PATCH 2/2 scsi: fix kconfig dependency warnings

From: Randy Dunlap <[email protected]>

Fix kconfig dependency warnings in scsi/Kconfig:

warning: (SCSI_SAS_LIBSAS && SCSI || SCSI_MPT2SAS && SCSI_LOWLEVEL && PCI && SCSI || FUSION_SAS && FUSION && PCI && SCSI) selects SCSI_SAS_ATTRS which has unmet direct dependencies (SCSI && BLK_DEV_BSG)

---
 drivers/scsi/Kconfig        |    3 ++-
 drivers/scsi/libsas/Kconfig |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)
drivers/scsi/libsas/Kconfig +1 -0
@@ -26,6 +26,7 @@ config SCSI_SAS_LIBSAS
 	tristate "SAS Domain Transport Attributes"
 	depends on SCSI
 	select SCSI_SAS_ATTRS
+	select BLK_DEV_BSG
 	help
 	  This provides transport specific helpers for SAS drivers which
 	  use the domain device construct (like the aic94xxx).
drivers/scsi/Kconfig +2 -1
@@ -316,7 +316,8 @@ config SCSI_ISCSI_ATTRS
 
 config SCSI_SAS_ATTRS
 	tristate "SAS Transport Attributes"
-	depends on SCSI && BLK_DEV_BSG
+	depends on SCSI
+	select BLK_DEV_BSG
 	help
 	  If you wish to export transport-specific information about
 	  each attached SAS device to sysfs, say Y.
#1 lore raw
Quoted 16 lines · Randy Dunlap

From: Randy Dunlap <[email protected]>

Fix kconfig dependency warnings in scsi/Kconfig:

warning: (SCSI_SAS_LIBSAS && SCSI || SCSI_MPT2SAS && SCSI_LOWLEVEL && PCI && SCSI || FUSION_SAS && FUSION && PCI && SCSI) selects SCSI_SAS_ATTRS which has unmet direct dependencies (SCSI && BLK_DEV_BSG)

---
 drivers/scsi/Kconfig        |    3 ++-
 drivers/scsi/libsas/Kconfig |    1 +
 2 files changed, 3 insertions(+), 1 deletion(-)

drivers/scsi/libsas/Kconfig config SCSI_SAS_LIBSAS · line 29

Quoted 4 lines
drivers/scsi/libsas/Kconfig +1 -0
@@ -26,6 +26,7 @@ config SCSI_SAS_LIBSAS
 	tristate "SAS Domain Transport Attributes"
 	depends on SCSI
 	select SCSI_SAS_ATTRS
+	select BLK_DEV_BSG

This isn't right if you do the below.

Selects cascade.

drivers/scsi/Kconfig config SCSI_ISCSI_ATTRS · line 320

Quoted 12 lines
drivers/scsi/libsas/Kconfig +0 -0
 	help
 	  This provides transport specific helpers for SAS drivers which
 	  use the domain device construct (like the aic94xxx).
drivers/scsi/Kconfig +2 -1
@@ -316,7 +316,8 @@ config SCSI_ISCSI_ATTRS
 
 config SCSI_SAS_ATTRS
 	tristate "SAS Transport Attributes"
-	depends on SCSI && BLK_DEV_BSG
+	depends on SCSI
+	select BLK_DEV_BSG

So this is the only part that's necessary, isn't it? Could you resubmit with just this?

Thanks,

James

#2 lore raw

PATCH v2 2/2 scsi: fix kconfig dependency warnings

Thanks for your comments.

From: Randy Dunlap <[email protected]>

Fix kconfig dependency warnings in scsi/Kconfig:

warning: (SCSI_SAS_LIBSAS && SCSI || SCSI_MPT2SAS && SCSI_LOWLEVEL && PCI && SCSI || FUSION_SAS && FUSION && PCI && SCSI) selects SCSI_SAS_ATTRS which has unmet direct dependencies (SCSI && BLK_DEV_BSG)

---
 drivers/scsi/Kconfig |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/scsi/Kconfig +2 -1
@@ -316,7 +316,8 @@ config SCSI_ISCSI_ATTRS
 
 config SCSI_SAS_ATTRS
 	tristate "SAS Transport Attributes"
-	depends on SCSI && BLK_DEV_BSG
+	depends on SCSI
+	select BLK_DEV_BSG
 	help
 	  If you wish to export transport-specific information about
 	  each attached SAS device to sysfs, say Y.