Message ID | 20190417182448.12382-3-jean-philippe.brucker@arm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add PCI ATS support to Arm SMMUv3 | expand |
On Wed, Apr 17, 2019 at 07:24:41PM +0100, Jean-Philippe Brucker wrote: > Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. > Since we're about to use the function in the Arm SMMUv3 driver, which > could be built with CONFIG_PCI disabled, add a definition of > pci_ats_disabled() for !CONFIG_PCI. > > Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> > --- > include/linux/pci.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/pci.h b/include/linux/pci.h > index 169c6a18d0b0..61d7cd888bad 100644 > --- a/include/linux/pci.h > +++ b/include/linux/pci.h > @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, > static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, > struct pci_dev *dev) > { return NULL; } > +static inline bool pci_ats_disabled(void) { return true; } > #endif /* CONFIG_PCI */ > > #ifdef CONFIG_PCI_ATS > -- > 2.21.0 >
diff --git a/include/linux/pci.h b/include/linux/pci.h index 169c6a18d0b0..61d7cd888bad 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d, static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, struct pci_dev *dev) { return NULL; } +static inline bool pci_ats_disabled(void) { return true; } #endif /* CONFIG_PCI */ #ifdef CONFIG_PCI_ATS
Currently pci_ats_disabled() is only defined when CONFIG_PCI is enabled. Since we're about to use the function in the Arm SMMUv3 driver, which could be built with CONFIG_PCI disabled, add a definition of pci_ats_disabled() for !CONFIG_PCI. Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com> --- include/linux/pci.h | 1 + 1 file changed, 1 insertion(+)