Re: Linux 2.4.25-pre4

Adrian Bunk
2004-01-06T18:28:40Z

On Tue, Jan 06, 2004 at 05:16:24PM +0100, Jan Kokoska wrote:

> Hi,

Hi Jan,

> Trying to compile $subj with following config (these options seem to
> cause the problem, full config attached):
>
> CONFIG_SCSI_MEGARAID=y
> CONFIG_SCSI_MEGARAID2=y
>
> gives me this result:
>...
> Is this a known issue and megaraids can't live together, or am I
> supposed to be able to compile both drivers in and this is a bug?
>...

They can't live together.

Below is a patch to tell the config system not to alllow illegal
configurations.

> Jan Kokoska
>...

cu
Adrian

--- linux-2.4.25-pre4-full/drivers/scsi/Config.in.old 2004-01-06 18:06:29.000000000 +0100
+++ linux-2.4.25-pre4-full/drivers/scsi/Config.in 2004-01-06 18:08:00.000000000 +0100
@@ -67,7 +67,16 @@
dep_tristate 'Always IN2000 SCSI support' CONFIG_SCSI_IN2000 $CONFIG_SCSI
dep_tristate 'AM53/79C974 PCI SCSI support' CONFIG_SCSI_AM53C974 $CONFIG_SCSI $CONFIG_PCI
dep_tristate 'AMI MegaRAID support' CONFIG_SCSI_MEGARAID $CONFIG_SCSI
-dep_tristate 'AMI MegaRAID2 support' CONFIG_SCSI_MEGARAID2 $CONFIG_SCSI
+if [ "$CONFIG_SCSI_MEGARAID" = "y" ]; then
+ define_tristate CONFIG_SCSI_MEGARAID2_DEP n
+else
+ if [ "$CONFIG_SCSI_MEGARAID" = "m" ]; then
+ define_tristate CONFIG_SCSI_MEGARAID2_DEP m $CONFIG_SCSI
+ else
+ define_tristate CONFIG_SCSI_MEGARAID2_DEP $CONFIG_SCSI
+ fi
+fi
+dep_tristate 'AMI MegaRAID2 support' CONFIG_SCSI_MEGARAID2 $CONFIG_SCSI_MEGARAID2_DEP

dep_tristate 'BusLogic SCSI support' CONFIG_SCSI_BUSLOGIC $CONFIG_SCSI
if [ "$CONFIG_SCSI_BUSLOGIC" != "n" ]; then