* [PATCH][TRIVIAL] (2.4.22) Allow aic7xxx_osm.c to be compiled without CONFIG_PCI
@ 2003-09-25 9:16 Denis Zaitsev
0 siblings, 0 replies; 2+ messages in thread
From: Denis Zaitsev @ 2003-09-25 9:16 UTC (permalink / raw)
To: linux-scsi; +Cc: linux-kernel, gibbs, dledford
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!)
--- drivers/scsi/aic7xxx/aic7xxx_osm.c.orig 2003-09-15 01:56:14.000000000 +0600
+++ drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-09-16 22:57:11.000000000 +0600
@@ -1552,6 +1552,7 @@ ahc_softc_comp(struct ahc_softc *lahc, s
/* 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 @@ ahc_softc_comp(struct ahc_softc *lahc, s
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 @@ ahc_softc_comp(struct ahc_softc *lahc, s
- lahc->bsh.ioport;
}
break;
+#endif
default:
panic("ahc_softc_sort: invalid bus type");
}
^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH][TRIVIAL] (2.4.22) Allow aic7xxx_osm.c to be compiled without CONFIG_PCI
@ 2003-10-02 18:50 Denis Zaitsev
0 siblings, 0 replies; 2+ messages in thread
From: Denis Zaitsev @ 2003-10-02 18:50 UTC (permalink / raw)
To: linux-scsi; +Cc: linux-kernel, gibbs, dledford, marcelo
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!)
--- drivers/scsi/aic7xxx/aic7xxx_osm.c.orig 2003-09-15 01:56:14.000000000 +0600
+++ drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-09-16 22:57:11.000000000 +0600
@@ -1552,6 +1552,7 @@ ahc_softc_comp(struct ahc_softc *lahc, s
/* 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 @@ ahc_softc_comp(struct ahc_softc *lahc, s
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 @@ ahc_softc_comp(struct ahc_softc *lahc, s
- lahc->bsh.ioport;
}
break;
+#endif
default:
panic("ahc_softc_sort: invalid bus type");
}
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-02 18:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-25 9:16 [PATCH][TRIVIAL] (2.4.22) Allow aic7xxx_osm.c to be compiled without CONFIG_PCI Denis Zaitsev
2003-10-02 18:50 Denis Zaitsev
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.