Skip to content

Commit b9ae16d

Browse files
Jean-Philippe Bruckerwildea01
authored andcommitted
PCI: Add a stub for pci_ats_disabled()
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. Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Jean-Philippe Brucker <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent 6e1ffbb commit b9ae16d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/linux/pci.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1713,6 +1713,7 @@ static inline int pci_irqd_intx_xlate(struct irq_domain *d,
17131713
static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids,
17141714
struct pci_dev *dev)
17151715
{ return NULL; }
1716+
static inline bool pci_ats_disabled(void) { return true; }
17161717
#endif /* CONFIG_PCI */
17171718

17181719
#ifdef CONFIG_PCI_ATS

0 commit comments

Comments
 (0)