Skip to content

Commit 72bde9c

Browse files
Kelsey Skunbergbjorn-helgaas
authored andcommitted
PCI: Make pcie_set_ecrc_checking(), pcie_ecrc_get_policy() private
These interfaces: void pcie_set_ecrc_checking(struct pci_dev *dev); void pcie_ecrc_get_policy(char *str); are only used in drivers/pci/ and do not need to be seen by the rest of the kernel. Move them to drivers/pci/pci.h so they're private to the PCI subsystem. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Kelsey Skunberg <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
1 parent b92b512 commit 72bde9c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

drivers/pci/pci.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,14 @@ static inline void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev) { }
541541
static inline void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev) { }
542542
#endif
543543

544+
#ifdef CONFIG_PCIE_ECRC
545+
void pcie_set_ecrc_checking(struct pci_dev *dev);
546+
void pcie_ecrc_get_policy(char *str);
547+
#else
548+
static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { }
549+
static inline void pcie_ecrc_get_policy(char *str) { }
550+
#endif
551+
544552
#ifdef CONFIG_PCIE_PTM
545553
void pci_ptm_init(struct pci_dev *dev);
546554
#else

include/linux/pci.h

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1559,14 +1559,6 @@ bool pci_aer_available(void);
15591559
static inline bool pci_aer_available(void) { return false; }
15601560
#endif
15611561

1562-
#ifdef CONFIG_PCIE_ECRC
1563-
void pcie_set_ecrc_checking(struct pci_dev *dev);
1564-
void pcie_ecrc_get_policy(char *str);
1565-
#else
1566-
static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { }
1567-
static inline void pcie_ecrc_get_policy(char *str) { }
1568-
#endif
1569-
15701562
bool pci_ats_disabled(void);
15711563

15721564
#ifdef CONFIG_PCIE_PTM

0 commit comments

Comments
 (0)