Skip to contentSkip to conversation

Fix for EISA only aic7xxx compile

PATCH James Bottomley 1 participant 1 message Aug 28, 2003

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

If I build an EISA (no PCI) kernel for my intel express, I get undefined references to ahc_linux_pci_exit().

The attached patch fixes this (seemed simpler than trying to work out how to move the function calls).

Other than that, EISA only seems to work fine for me.

James

===== drivers/scsi/aic7xxx/aic7xxx_osm.h 1.50 vs edited =====

drivers/scsi/aic7xxx/aic7xxx_osm.h +6 -0
@@ -852,10 +852,16 @@
 int			 aic7770_map_int(struct ahc_softc *ahc, u_int irq);
 
 /******************************* PCI Routines *********************************/
+#ifdef CONFIG_PCI
 int			 ahc_linux_pci_init(void);
 void			 ahc_linux_pci_exit(void);
 int			 ahc_pci_map_registers(struct ahc_softc *ahc);
 int			 ahc_pci_map_int(struct ahc_softc *ahc);
+#else
+static inline void ahc_linux_pci_exit(void)
+{
+}
+#endif
 
 static __inline uint32_t ahc_pci_read_config(ahc_dev_softc_t pci,
 					     int reg, int width);