Skip to contentSkip to conversation

Compile error in 2.4.22 without PCI

PATCH In review Denis Zaitsev 2 participants 3 messages Oct 14, 2003 – Oct 18, 2003 SCSI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Compile error in 2.4.22 without PCI

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.

scsi/aic7xxx/aic7xxx_osm.c renamed from scsi/aic7xxx/aic7xxx_osm.c.orig +4 -0
@@ -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");
 	}
#1 lore raw
Quoted 11 lines · Denis Zaitsev

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.

-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 9 lines · Christoph Hellwig
Quoted 4 lines · Denis Zaitsev

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.