On Mon, Jun 11, 2012 at 10:00 PM, Alex Williamson <alex.williamson@xxxxxxxxxx> wrote: > When CONFIG_PCI_QUIRKS is not defined we want to keep the reference > counting the same for callers of pci_get_dma_source. But I forgot to > account for !CONFIG_PCI where we then need to make an inline for > pci_get_dev. This fixes it. > > Signed-off-by: Alex Williamson <alex.williamson@xxxxxxxxxx> > --- > > include/linux/pci.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 95479cd..35884f27 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1368,6 +1368,9 @@ static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, > static inline int pci_domain_nr(struct pci_bus *bus) > { return 0; } > > +static inline struct pci_dev *pci_dev_get(struct pci_dev *dev) > +{ return NULL; } I folded this into patch [1/5] and will rebase "next" today. -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html