* Fix for EISA only aic7xxx compile
@ 2003-08-28 16:40 James Bottomley
0 siblings, 0 replies; only message in thread
From: James Bottomley @ 2003-08-28 16:40 UTC (permalink / raw)
To: Justin T. Gibbs; +Cc: SCSI Mailing List
[-- Attachment #1: Type: text/plain, Size: 276 bytes --]
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
[-- Attachment #2: tmp.diff --]
[-- Type: text/plain, Size: 744 bytes --]
===== drivers/scsi/aic7xxx/aic7xxx_osm.h 1.50 vs edited =====
--- 1.50/drivers/scsi/aic7xxx/aic7xxx_osm.h Fri May 2 15:26:21 2003
+++ edited/drivers/scsi/aic7xxx/aic7xxx_osm.h Thu Aug 28 12:05:26 2003
@@ -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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-08-28 16:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-28 16:40 Fix for EISA only aic7xxx compile James Bottomley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox