[PATCH -next] scsi: RAID_ATTRS depends on SCSI

From: Randy Dunlap
Date: Sun Feb 21 2010 - 22:46:57 EST


From: Randy Dunlap <randy.dunlap@xxxxxxxxxx>

raid_class uses scsi interfaces, so it should depend on SCSI.
Otherwise build errors occur when RAID_ATTRS=y and SCSI=m:

ERROR: "raid_class_release" [drivers/scsi/mpt2sas/mpt2sas.ko] undefined!
ERROR: "raid_class_attach" [drivers/scsi/mpt2sas/mpt2sas.ko] undefined!

Signed-off-by: Randy Dunlap <randy.dunlap@xxxxxxxxxx>
---
drivers/scsi/Kconfig | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

--- linux-next-20100219.orig/drivers/scsi/Kconfig
+++ linux-next-20100219/drivers/scsi/Kconfig
@@ -1,12 +1,5 @@
menu "SCSI device support"

-config RAID_ATTRS
- tristate "RAID Transport Class"
- default n
- depends on BLOCK
- ---help---
- Provides RAID
-
config SCSI
tristate "SCSI device support"
depends on BLOCK
@@ -34,6 +27,13 @@ config SCSI_DMA
bool
default n

+config RAID_ATTRS
+ tristate "RAID Transport Class"
+ default n
+ depends on BLOCK && SCSI
+ ---help---
+ Provides RAID
+
config SCSI_TGT
tristate "SCSI target support"
depends on SCSI && EXPERIMENTAL
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/