[10/11] PCI: Move PTM declaration to drivers/pci/pci.h
diff mbox series

Message ID 20190711222341.111556-11-skunberg.kelsey@gmail.com
State Changes Requested
Delegated to: Bjorn Helgaas
Headers show
  • PCI: Move symbols to drivers/pci/pci.h
Related show

Commit Message

Kelsey Skunberg July 11, 2019, 10:23 p.m. UTC
pci_enable_ptm() is only called within drivers/pci/. Since declaration
does not need to be visible to the rest of the kernel, move to

Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
 drivers/pci/pci.h   | 3 +++
 include/linux/pci.h | 7 -------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff mbox series

diff --git a/drivers/pci/pci.h b/drivers/pci/pci.h
index 74249c31325c..95bca00ea85a 100644
--- a/drivers/pci/pci.h
+++ b/drivers/pci/pci.h
@@ -547,8 +547,11 @@  static inline void pcie_ecrc_get_policy(char *str) { }
 void pci_ptm_init(struct pci_dev *dev);
+int pci_enable_ptm(struct pci_dev *dev, u8 *granularity);
 static inline void pci_ptm_init(struct pci_dev *dev) { }
+static inline int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
+{ return -EINVAL; }
 struct pci_dev_reset_methods {
diff --git a/include/linux/pci.h b/include/linux/pci.h
index 8fbe3471e8f0..ea4dfb6b6693 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -1503,13 +1503,6 @@  static inline bool pci_aer_available(void) { return false; }
 bool pci_ats_disabled(void);
-int pci_enable_ptm(struct pci_dev *dev, u8 *granularity);
-static inline int pci_enable_ptm(struct pci_dev *dev, u8 *granularity)
-{ return -EINVAL; }
 void pci_cfg_access_lock(struct pci_dev *dev);
 bool pci_cfg_access_trylock(struct pci_dev *dev);
 void pci_cfg_access_unlock(struct pci_dev *dev);