Re: Linux 2.4.25-pre4 (fwd)

From: Andrzej Krzysztofowicz
Date: Wed Jan 07 2004 - 10:31:11 EST


"F wrote:"
>From linux-kernel-owner+ankry=40pg.gda.pl@xxxxxxxxxxxxxxx Tue Jan 6 18:34:02 2004
X-BrightmailFiltered: true
Date: Tue, 6 Jan 2004 18:30:17 +0100
From: Kronos <kronos@xxxxxxxxxxxxxx>
To: linux-kernel@xxxxxxxxxxxxxxx
Cc: Matt Domsch <Matt_Domsch@xxxxxxxx>,
Marcelo Tosatti <marcelo.tosatti@xxxxxxxxxxxx>
Subject: Re: Linux 2.4.25-pre4
Message-ID: <20040106173017.GA10755@xxxxxxxxxxxxxxxxxxxxxx>
Reply-To: kronos@xxxxxxxxxxxxxx
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040106102819.A12626@xxxxxxxxxxxxxxxxx>
User-Agent: Mutt/1.4i
Sender: linux-kernel-owner@xxxxxxxxxxxxxxx
Precedence: bulk
X-Mailing-List: linux-kernel@xxxxxxxxxxxxxxx
X-Spam-Checker-Version: SpamAssassin 2.70-cvs (1.218-2003-11-09-exp) on
mordred.oi.pg.gda.pl
X-Spam-Level:
X-Spam-Status: No, hits=0.3 required=5.0 tests=UPPERCASE_25_50 autolearn=no
version=2.70-cvs

Matt Domsch <Matt_Domsch@xxxxxxxx> ha scritto:
>> 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
>>
>> 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?
>
> yes, this is known and expected. You can build both as modules, but
> they're not intended to both be loaded simultaneously (either built-in
> or as modules). They're mutually exclusive.

Ok, what about this patch (against 2.4.25-pre4):

--- linux-2.4/drivers/scsi/Config.in.orig Tue Jan 6 18:11:10 2004
+++ linux-2.4/drivers/scsi/Config.in Tue Jan 6 18:23:29 2004
@@ -66,8 +66,13 @@
dep_tristate 'AdvanSys SCSI support' CONFIG_SCSI_ADVANSYS $CONFIG_SCSI
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_MEGARAID2" == "n" -o "$CONFIG_SCSI_MEGARAID2" == "" ]; then
+ dep_tristate 'AMI MegaRAID support' CONFIG_SCSI_MEGARAID $CONFIG_SCSI
+fi
+if [ "$CONFIG_SCSI_MEGARAID" == "n" -o "$CONFIG_SCSI_MEGARAID" == "" ]; then
+ dep_tristate 'AMI MegaRAID2 support' CONFIG_SCSI_MEGARAID2 $CONFIG_SCSI
+fi

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


I'm not very familiar with 2.4 config language, maybe there's a better
way to do it.

Luca
--
Reply-To: kronos@xxxxxxxxxxxxxx
Home: http://kronoz.cjb.net
Carpe diem, quam minimum credula postero. (Q. Horatius Flaccus)
-
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/


--
=======================================================================
Andrzej M. Krzysztofowicz ankry@xxxxxxxxxxxxx
phone (48)(58) 347 14 61
Faculty of Applied Phys. & Math., Gdansk University of Technology
-
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/