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; } + #define dev_is_pci(d) (false) #define dev_is_pf(d) (false) #define dev_num_vf(d) (0) -- 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