diff options
author | Kelsey Skunberg <skunberg.kelsey@gmail.com> | 2019-07-24 17:38:47 -0600 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-07-30 08:45:55 -0500 |
commit | ac6c26da29c12fa511c877c273ed5c939dc9e96c (patch) | |
tree | bf3a0b3fb3bb3630a744334a16939fc9e7cdd5e0 /include | |
parent | 72bde9ced373ca1e27332fd020d248151319a3d6 (diff) | |
download | linux-ac6c26da29c12fa511c877c273ed5c939dc9e96c.tar.bz2 |
PCI: Make pci_enable_ptm() private
This interface:
int pci_enable_ptm(struct pci_dev *dev, u8 *granularity);
is only used in drivers/pci/ and does not need to be seen by the rest of
the kernel. Move it to drivers/pci/pci.h so it's private to the PCI
subsystem.
Link: https://lore.kernel.org/r/20190724233848.73327-11-skunberg.kelsey@gmail.com
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/pci.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 65502c564661..ef73b0c87f01 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h @@ -1561,13 +1561,6 @@ static inline bool pci_aer_available(void) { return false; } bool pci_ats_disabled(void); -#ifdef CONFIG_PCIE_PTM -int pci_enable_ptm(struct pci_dev *dev, u8 *granularity); -#else -static inline int pci_enable_ptm(struct pci_dev *dev, u8 *granularity) -{ return -EINVAL; } -#endif - 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); |