* [PATCH TRIVIAL] Compile error in 2.4.22 without PCI
@ 2003-10-31 21:29 Denis Zaitsev
0 siblings, 0 replies; 5+ messages in thread
From: Denis Zaitsev @ 2003-10-31 21:29 UTC (permalink / raw)
To: marcelo.tosatti, gibbs; +Cc: linux-kernel, linux-scsi
I have these warnings when I'm compiling 2.4.22 for a 486 EISA system:
aic7xxx_osm.c: In function `ahc_softc_comp':
aic7xxx_osm.c:1560: warning: implicit declaration of function `ahc_get_pci_bus'
aic7xxx_osm.c:1568: warning: implicit declaration of function `ahc_get_pci_slot'
And then the make finishes with an error, because these functions
really exist only if the PCI support is turned on.
The patch below fixes this. And the same patch fits for the 2.6
kernels. Please, apply it.
--- drivers/scsi/aic7xxx/aic7xxx_osm.c.orig 2003-09-15 01:56:14.000000000 +0600
+++ drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-10-15 00:23:37.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");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH TRIVIAL] Compile error in 2.4.22 without PCI
@ 2003-10-18 20:55 Denis Zaitsev
0 siblings, 0 replies; 5+ messages in thread
From: Denis Zaitsev @ 2003-10-18 20:55 UTC (permalink / raw)
To: gibbs; +Cc: linux-kernel, linux-scsi
I have these warnings when I'm compiling 2.4.22 for a 486 EISA system:
aic7xxx_osm.c: In function `ahc_softc_comp':
aic7xxx_osm.c:1560: warning: implicit declaration of function `ahc_get_pci_bus'
aic7xxx_osm.c:1568: warning: implicit declaration of function `ahc_get_pci_slot'
And then the make finishes with an error, because these functions
really exist only if the PCI support is turned on.
The patch below fixes this. And the same patch fits for the 2.6
kernels. Please, apply it.
--- drivers/scsi/aic7xxx/aic7xxx_osm.c.orig 2003-09-15 01:56:14.000000000 +0600
+++ drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-10-15 00:23:37.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");
}
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH TRIVIAL] Compile error in 2.4.22 without PCI
2003-10-17 12:33 ` Christoph Hellwig
@ 2003-10-18 20:52 ` Denis Zaitsev
0 siblings, 0 replies; 5+ messages in thread
From: Denis Zaitsev @ 2003-10-18 20:52 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: linux-kernel, linux-scsi
On Fri, Oct 17, 2003 at 01:33:01PM +0100, Christoph Hellwig wrote:
> On Wed, Oct 15, 2003 at 12:30:36AM +0600, Denis Zaitsev wrote:
> > I have these warnings when I'm compiling 2.4.22 for a 486 EISA system:
> >
> > The patch below fixes this. And the same patch fits for the 2.6
> > kernels. Please, apply it.
>
> You probably want to send this to Justin, the driver Maintainer. If he
> doesn't reply in say a week I?d suggest submitting it to Marcelo as it's
> obviously correct.
Thanks for the reply. I've already tried exactly the same sequence
some weeks ago... :) Anyway, I'll do this again right now. Thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH TRIVIAL] Compile error in 2.4.22 without PCI
2003-10-14 18:30 Denis Zaitsev
@ 2003-10-17 12:33 ` Christoph Hellwig
2003-10-18 20:52 ` Denis Zaitsev
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2003-10-17 12:33 UTC (permalink / raw)
To: Denis Zaitsev; +Cc: linux-kernel, linux-scsi
On Wed, Oct 15, 2003 at 12:30:36AM +0600, Denis Zaitsev wrote:
> I have these warnings when I'm compiling 2.4.22 for a 486 EISA system:
>
> aic7xxx_osm.c: In function `ahc_softc_comp':
> aic7xxx_osm.c:1560: warning: implicit declaration of function `ahc_get_pci_bus'
> aic7xxx_osm.c:1568: warning: implicit declaration of function `ahc_get_pci_slot'
>
> And then the make finishes with an error, because these functions
> really exist only if the PCI support is turned on.
>
> The patch below fixes this. And the same patch fits for the 2.6
> kernels. Please, apply it.
You probably want to send this to Justin, the driver Maintainer. If he
doesn't reply in say a week I´d suggest submitting it to Marcelo as it's
obviously correct.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH TRIVIAL] Compile error in 2.4.22 without PCI
@ 2003-10-14 18:30 Denis Zaitsev
2003-10-17 12:33 ` Christoph Hellwig
0 siblings, 1 reply; 5+ messages in thread
From: Denis Zaitsev @ 2003-10-14 18:30 UTC (permalink / raw)
To: linux-kernel; +Cc: linux-scsi
I have these warnings when I'm compiling 2.4.22 for a 486 EISA system:
aic7xxx_osm.c: In function `ahc_softc_comp':
aic7xxx_osm.c:1560: warning: implicit declaration of function `ahc_get_pci_bus'
aic7xxx_osm.c:1568: warning: implicit declaration of function `ahc_get_pci_slot'
And then the make finishes with an error, because these functions
really exist only if the PCI support is turned on.
The patch below fixes this. And the same patch fits for the 2.6
kernels. Please, apply it.
--- drivers/scsi/aic7xxx/aic7xxx_osm.c.orig 2003-09-15 01:56:14.000000000 +0600
+++ drivers/scsi/aic7xxx/aic7xxx_osm.c 2003-10-15 00:23:37.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] 5+ messages in thread
end of thread, other threads:[~2003-10-31 21:30 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-31 21:29 [PATCH TRIVIAL] Compile error in 2.4.22 without PCI Denis Zaitsev
-- strict thread matches above, loose matches on Subject: below --
2003-10-18 20:55 Denis Zaitsev
2003-10-14 18:30 Denis Zaitsev
2003-10-17 12:33 ` Christoph Hellwig
2003-10-18 20:52 ` Denis Zaitsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).