login
Header Space

 
 

Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Darrick J. Wong <djwong@...>
Cc: Adrian Bunk <bunk@...>, Toralf <toralf.foerster@...>, <linux-scsi@...>, <linux-kernel@...>
Date: Thursday, March 6, 2008 - 5:32 pm

On Thu, 2008-03-06 at 12:35 -0800, Darrick J. Wong wrote:

Actually, it's a dependency chain fault.  The config this was generated
from has

CONFIG_SCSI=m

CONFIG_SCSI_AIC94XX=y

the latter then forces

CONFIG_SCSI_SAS_LIBSAS=y

I think the error reported is wrong: the kernel just should have failed
to link, since both the built in aic94xx and libsas have scsi
dependencies.

We have a few other drivers in this category (like ibmvscsi).  The root
cause seems to be that SCSI_LOWLEVEL doesn't act as a tristate.  I think
a fix that will prevent all of these issues from recurring is this one.

James


---

diff --git a/drivers/scsi/Kconfig b/drivers/scsi/Kconfig
index c46666a..b9d3740 100644
--- a/drivers/scsi/Kconfig
+++ b/drivers/scsi/Kconfig
@@ -325,7 +325,7 @@ menuconfig SCSI_LOWLEVEL
 	depends on SCSI!=n
 	default y
 
-if SCSI_LOWLEVEL
+if SCSI_LOWLEVEL && SCSI
 
 config ISCSI_TCP
 	tristate "iSCSI Initiator over TCP/IP"


--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[2.6 patch] SCSI_AIC94XX must depend on SCSI, Adrian Bunk, (Thu Mar 6, 4:22 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, Darrick J. Wong, (Thu Mar 6, 4:35 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, James Bottomley, (Thu Mar 6, 5:32 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, Sam Ravnborg, (Thu Mar 6, 6:30 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, James Bottomley, (Thu Mar 6, 4:31 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, Adrian Bunk, (Thu Mar 6, 5:39 pm)
Re: [2.6 patch] SCSI_AIC94XX must depend on SCSI, James Bottomley, (Thu Mar 6, 6:07 pm)
speck-geostationary