Skip to content

Commit c6e9aef

Browse files
committed
PCI/ATS: Remove unused PRI and PASID stubs
The following functions are only used by amd_iommu.c and intel-iommu.c (when CONFIG_INTEL_IOMMU_SVM is enabled). CONFIG_PCI_PRI and CONFIG_PCI_PASID are always defined in those cases, so there's no need for the stubs. pci_enable_pri() pci_disable_pri() pci_reset_pri() pci_prg_resp_pasid_required() pci_enable_pasid() pci_disable_pasid() Remove the unused stubs. Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]> Reviewed-by: Joerg Roedel <[email protected]>
1 parent b24d5c2 commit c6e9aef

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/linux/pci-ats.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,7 @@ void pci_restore_pri_state(struct pci_dev *pdev);
2727
int pci_reset_pri(struct pci_dev *pdev);
2828
int pci_prg_resp_pasid_required(struct pci_dev *pdev);
2929
#else /* CONFIG_PCI_PRI */
30-
static inline int pci_enable_pri(struct pci_dev *pdev, u32 reqs)
31-
{ return -ENODEV; }
32-
static inline void pci_disable_pri(struct pci_dev *pdev) { }
3330
static inline void pci_restore_pri_state(struct pci_dev *pdev) { }
34-
static inline int pci_reset_pri(struct pci_dev *pdev)
35-
{ return -ENODEV; }
36-
static inline int pci_prg_resp_pasid_required(struct pci_dev *pdev)
37-
{ return 0; }
3831
#endif /* CONFIG_PCI_PRI */
3932

4033
#ifdef CONFIG_PCI_PASID
@@ -44,9 +37,6 @@ void pci_restore_pasid_state(struct pci_dev *pdev);
4437
int pci_pasid_features(struct pci_dev *pdev);
4538
int pci_max_pasids(struct pci_dev *pdev);
4639
#else /* CONFIG_PCI_PASID */
47-
static inline int pci_enable_pasid(struct pci_dev *pdev, int features)
48-
{ return -EINVAL; }
49-
static inline void pci_disable_pasid(struct pci_dev *pdev) { }
5040
static inline void pci_restore_pasid_state(struct pci_dev *pdev) { }
5141
static inline int pci_pasid_features(struct pci_dev *pdev)
5242
{ return -EINVAL; }

0 commit comments

Comments
 (0)