Re: [PATCH] PCI fixes for 2.6.9

From: Greg KH
Date: Wed Oct 20 2004 - 00:43:40 EST


ChangeSet 1.1997.2.121, 2004/10/06 17:20:53-07:00, akpm@xxxxxxxx

[PATCH] PCI: pci_dev_put() build fix

With CONFIG_PCI=n:

arch/i386/kernel/cpu/mtrr/main.c: In function `have_wrcomb':
arch/i386/kernel/cpu/mtrr/main.c:86: warning: implicit declaration of function `pci_dev_put

Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


include/linux/pci.h | 1 +
1 files changed, 1 insertion(+)


diff -Nru a/include/linux/pci.h b/include/linux/pci.h
--- a/include/linux/pci.h 2004-10-19 15:21:19 -07:00
+++ b/include/linux/pci.h 2004-10-19 15:21:19 -07:00
@@ -896,6 +896,7 @@
{ return NULL; }

#define pci_dev_present(ids) (0)
+#define pci_dev_put(dev) do { } while (0)

static inline void pci_set_master(struct pci_dev *dev) { }
static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; }

-
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/