[patch 3/7] PCI: fix quirk-6700-fix.patch

Greg Kroah-Hartman
2005-08-16T22:16:20Z

[-- Attachment #1: pci-quirk-6700-fix.patch --]
[-- Type: text/plain, Size: 917 bytes --]

From: Andrew Morton <akpm@osdl.org>

drivers/built-in.o(.text+0x32c3): In function `quirk_pcie_pxh':
/usr/src/25/drivers/pci/quirks.c:1312: undefined reference to `disable_msi_mode'

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

---
drivers/pci/pci.h | 6 ++++++
1 files changed, 6 insertions(+)

--- gregkh-2.6.orig/drivers/pci/pci.h 2005-08-16 14:57:46.000000000 -0700
+++ gregkh-2.6/drivers/pci/pci.h 2005-08-16 14:57:47.000000000 -0700
@@ -46,7 +46,13 @@ extern int pci_msi_quirk;
#else
#define pci_msi_quirk 0
#endif
+
+#ifdef CONFIG_PCI_MSI
void disable_msi_mode(struct pci_dev *dev, int pos, int type);
+#else
+static inline void disable_msi_mode(struct pci_dev *dev, int pos, int type) { }
+#endif
+
extern int pcie_mch_quirk;
extern struct device_attribute pci_dev_attrs[];
extern struct class_device_attribute class_device_attr_cpuaffinity;

--