[PATCH] ia64 kernel fails to link because of PCI MSI quirk

From: James Bottomley
Date: Tue Mar 15 2005 - 11:53:27 EST


The problem is that the MSI code has an unconditional dependency on
pci_msi_quirk. However, the quirk and the variable are only defined if
CONFIG_X86_IO_APIC is defined, which it never is on ia64.

The solution is to make the variable global and unconditional.

James

===== drivers/pci/quirks.c 1.72 vs edited =====
--- 1.72/drivers/pci/quirks.c 2005-03-10 02:38:25 -06:00
+++ edited/drivers/pci/quirks.c 2005-03-15 10:25:43 -06:00
@@ -19,6 +19,8 @@
#include <linux/init.h>
#include <linux/delay.h>

+int pci_msi_quirk = 0;
+
#undef DEBUG

/* Deal with broken BIOS'es that neglect to enable passive release,
@@ -428,8 +430,6 @@
sis_apic_bug = 1;
}
DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_SI, PCI_ANY_ID,
quirk_ioapic_rmw );
-
-int pci_msi_quirk;

#define AMD8131_revA0 0x01
#define AMD8131_revB0 0x11


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/