diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2018-08-10 00:19:52 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-08-10 00:19:52 +0300 |
commit | bd2e9567db72e37f7f4b90faa5133bc7365b5f65 (patch) | |
tree | d22340a9a622c4d9f876a1423727822ace7c28d9 /drivers/pci | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
download | linux-bd2e9567db72e37f7f4b90faa5133bc7365b5f65.tar.xz |
PCI: Hide ACS quirk declarations inside PCI core
Move declarations for these functions:
pci_dev_specific_acs_enabled()
pci_dev_specific_enable_acs()
from include/linux/pci.h to drivers/pci/pci.h because nothing outside the
PCI core needs to use them.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/pci.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h index c358e7a07f3f..a1224fef3409 100644 --- a/drivers/pci/pci.h +++ b/drivers/pci/pci.h @@ -352,6 +352,20 @@ static inline resource_size_t pci_resource_alignment(struct pci_dev *dev, } void pci_enable_acs(struct pci_dev *dev); +#ifdef CONFIG_PCI_QUIRKS +int pci_dev_specific_acs_enabled(struct pci_dev *dev, u16 acs_flags); +int pci_dev_specific_enable_acs(struct pci_dev *dev); +#else +static inline int pci_dev_specific_acs_enabled(struct pci_dev *dev, + u16 acs_flags) +{ + return -ENOTTY; +} +static inline int pci_dev_specific_enable_acs(struct pci_dev *dev) +{ + return -ENOTTY; +} +#endif /* PCI error reporting and recovery */ void pcie_do_fatal_recovery(struct pci_dev *dev, u32 service); |