FROMLIST: PCI: Export PCI ACS and DMA searching functions to modules

IOMMU drivers that can be compiled as modules may
want to use pci_for_each_dma_alias() and pci_request_acs(),
so export those functions.

Change-Id: I8fab4075d151cc3d07a6594685895a189565bb3d
Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Bug: 140290589
Link: https://patchwork.kernel.org/patch/10948411/
This commit is contained in:
Isaac J. Manjarres
2019-09-10 15:44:23 -07:00
parent ebc7824f47
commit c32fef399d
2 changed files with 2 additions and 0 deletions

View File

@@ -3173,6 +3173,7 @@ void pci_request_acs(void)
{
pci_acs_enable = 1;
}
EXPORT_SYMBOL_GPL(pci_request_acs);
static const char *disable_acs_redir_param;

View File

@@ -106,6 +106,7 @@ int pci_for_each_dma_alias(struct pci_dev *pdev,
return ret;
}
EXPORT_SYMBOL_GPL(pci_for_each_dma_alias);
static struct pci_bus *pci_do_find_bus(struct pci_bus *bus, unsigned char busnr)
{