Skip to content

Commit 7682ce2

Browse files
jpbruckerwilldeacon
authored andcommitted
PCI/ATS: Export symbols of PASID functions
The Arm SMMUv3 driver uses pci_{enable,disable}_pasid() and related functions. Export them to allow the driver to be built as a module. Acked-by: Bjorn Helgaas <[email protected]> Signed-off-by: Jean-Philippe Brucker <[email protected]> Signed-off-by: Will Deacon <[email protected]>
1 parent fa1c76d commit 7682ce2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/pci/ats.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,7 @@ int pci_enable_pasid(struct pci_dev *pdev, int features)
366366

367367
return 0;
368368
}
369+
EXPORT_SYMBOL_GPL(pci_enable_pasid);
369370

370371
/**
371372
* pci_disable_pasid - Disable the PASID capability
@@ -390,6 +391,7 @@ void pci_disable_pasid(struct pci_dev *pdev)
390391

391392
pdev->pasid_enabled = 0;
392393
}
394+
EXPORT_SYMBOL_GPL(pci_disable_pasid);
393395

394396
/**
395397
* pci_restore_pasid_state - Restore PASID capabilities
@@ -441,6 +443,7 @@ int pci_pasid_features(struct pci_dev *pdev)
441443

442444
return supported;
443445
}
446+
EXPORT_SYMBOL_GPL(pci_pasid_features);
444447

445448
#define PASID_NUMBER_SHIFT 8
446449
#define PASID_NUMBER_MASK (0x1f << PASID_NUMBER_SHIFT)
@@ -469,4 +472,5 @@ int pci_max_pasids(struct pci_dev *pdev)
469472

470473
return (1 << supported);
471474
}
475+
EXPORT_SYMBOL_GPL(pci_max_pasids);
472476
#endif /* CONFIG_PCI_PASID */

0 commit comments

Comments
 (0)