Skip to content

Commit fef2dd8

Browse files
committed
PCI/ATS: Make pci_restore_pri_state(), pci_restore_pasid_state() private
These interfaces: void pci_restore_pri_state(struct pci_dev *pdev); void pci_restore_pasid_state(struct pci_dev *pdev); are only used in drivers/pci and do not need to be seen by the rest of the kernel. Most them to drivers/pci/pci.h so they're private to the PCI subsystem. Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Joerg Roedel <[email protected]>
1 parent d355bb2 commit fef2dd8

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

drivers/pci/pci.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -458,14 +458,18 @@ static inline void pci_restore_ats_state(struct pci_dev *dev) { }
458458

459459
#ifdef CONFIG_PCI_PRI
460460
void pci_pri_init(struct pci_dev *dev);
461+
void pci_restore_pri_state(struct pci_dev *pdev);
461462
#else
462463
static inline void pci_pri_init(struct pci_dev *dev) { }
464+
static inline void pci_restore_pri_state(struct pci_dev *pdev) { }
463465
#endif
464466

465467
#ifdef CONFIG_PCI_PASID
466468
void pci_pasid_init(struct pci_dev *dev);
469+
void pci_restore_pasid_state(struct pci_dev *pdev);
467470
#else
468471
static inline void pci_pasid_init(struct pci_dev *dev) { }
472+
static inline void pci_restore_pasid_state(struct pci_dev *pdev) { }
469473
#endif
470474

471475
#ifdef CONFIG_PCI_IOV

include/linux/pci-ats.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,16 @@ static inline int pci_ats_page_aligned(struct pci_dev *dev)
2323
#ifdef CONFIG_PCI_PRI
2424
int pci_enable_pri(struct pci_dev *pdev, u32 reqs);
2525
void pci_disable_pri(struct pci_dev *pdev);
26-
void pci_restore_pri_state(struct pci_dev *pdev);
2726
int pci_reset_pri(struct pci_dev *pdev);
2827
int pci_prg_resp_pasid_required(struct pci_dev *pdev);
29-
#else /* CONFIG_PCI_PRI */
30-
static inline void pci_restore_pri_state(struct pci_dev *pdev) { }
3128
#endif /* CONFIG_PCI_PRI */
3229

3330
#ifdef CONFIG_PCI_PASID
3431
int pci_enable_pasid(struct pci_dev *pdev, int features);
3532
void pci_disable_pasid(struct pci_dev *pdev);
36-
void pci_restore_pasid_state(struct pci_dev *pdev);
3733
int pci_pasid_features(struct pci_dev *pdev);
3834
int pci_max_pasids(struct pci_dev *pdev);
3935
#else /* CONFIG_PCI_PASID */
40-
static inline void pci_restore_pasid_state(struct pci_dev *pdev) { }
4136
static inline int pci_pasid_features(struct pci_dev *pdev)
4237
{ return -EINVAL; }
4338
static inline int pci_max_pasids(struct pci_dev *pdev)

0 commit comments

Comments
 (0)