diff options
| author | Jean-Philippe Brucker <jean-philippe.brucker@arm.com> | 2019-04-17 14:24:41 -0400 |
|---|---|---|
| committer | Will Deacon <will.deacon@arm.com> | 2019-04-23 07:22:55 -0400 |
| commit | b9ae16d80a357c88fcb7ff6831cfdc196f0a34dd (patch) | |
| tree | 966ff266b5a78dd1a90e196aaf320b9ebe86f6f2 | |
| parent | 6e1ffbb7c2ab80df54ecbb01cf3d2c64aafed74a (diff) | |
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 <bhelgaas@google.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
| -rw-r--r-- | include/linux/pci.h | 1 |
1 files changed, 1 insertions, 0 deletions
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, | |||
| 1713 | static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, | 1713 | static inline const struct pci_device_id *pci_match_id(const struct pci_device_id *ids, |
| 1714 | struct pci_dev *dev) | 1714 | struct pci_dev *dev) |
| 1715 | { return NULL; } | 1715 | { return NULL; } |
| 1716 | static inline bool pci_ats_disabled(void) { return true; } | ||
| 1716 | #endif /* CONFIG_PCI */ | 1717 | #endif /* CONFIG_PCI */ |
| 1717 | 1718 | ||
| 1718 | #ifdef CONFIG_PCI_ATS | 1719 | #ifdef CONFIG_PCI_ATS |
