From zzz@anda.ru Tue Oct  7 09:07:20 2003
Date: Fri, 3 Oct 2003 00:50:16 +0600
From: Denis Zaitsev <zzz@anda.ru>
To: linux-scsi@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, gibbs@scsiguy.com, dledford@redhat.com,
     marcelo@conectiva.com.br
Subject: [PATCH][TRIVIAL] (2.4.22) Allow aic7xxx_osm.c to be compiled
    without CONFIG_PCI

This is the trivial #ifdef patch for CONFIG_PCI/EISA.  In my case it
allows the Adaptec SCSI driver (the "new" one) to be compiled for
non-PCI (EISA) system.  Else there are an <undefined symbol> errors.
The 2.6 branch needs the same patch, as I understand.

Please, apply it.  (I don't know who is the maintainer for now!)


--- linux-2.4.22.orig/drivers/scsi/aic7xxx/aic7xxx_osm.c	Mon Aug 25 05:44:42 2003
+++ linux-2.4.22/drivers/scsi/aic7xxx/aic7xxx_osm.c	Mon Oct  6 01:05:04 2003
@@ -1552,6 +1552,7 @@
 
 	/* Still equal.  Sort by BIOS address, ioport, or bus/slot/func. */
 	switch (rvalue) {
+#ifdef CONFIG_PCI
 	case AHC_PCI:
 	{
 		char primary_channel;
@@ -1584,6 +1585,8 @@
 			value = 1;
 		break;
 	}
+#endif
+#ifdef CONFIG_EISA
 	case AHC_EISA:
 		if ((rahc->flags & AHC_BIOS_ENABLED) != 0) {
 			value = rahc->platform_data->bios_address
@@ -1593,6 +1596,7 @@
 			      - lahc->bsh.ioport; 
 		}
 		break;
+#endif
 	default:
 		panic("ahc_softc_sort: invalid bus type");
 	}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

