diff options
author | Rajat Jain <rajatja@google.com> | 2018-06-21 19:48:26 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-07-19 17:17:03 -0400 |
commit | 60ed982a4e78ff938824a750dbac8a10e5b472ef (patch) | |
tree | 648d22e8151a789cacf4515f0ff8859bf875905c /include/linux/pci.h | |
parent | bd237801fef230cea8f2a5ab550d500f19f856d8 (diff) |
PCI/AER: Move internal declarations to drivers/pci/pci.h
Since pci_aer_init() and pci_no_aer() are used only internally, move their
declarations to the PCI internal header file. Also, no one cares about
return value of pci_aer_init(), so make it void.
Signed-off-by: Rajat Jain <rajatja@google.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r-- | include/linux/pci.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h index 340029b2fb38..b4ffea05c999 100644 --- a/include/linux/pci.h +++ b/include/linux/pci.h | |||
@@ -1468,13 +1468,9 @@ static inline bool pcie_aspm_support_enabled(void) { return false; } | |||
1468 | #endif | 1468 | #endif |
1469 | 1469 | ||
1470 | #ifdef CONFIG_PCIEAER | 1470 | #ifdef CONFIG_PCIEAER |
1471 | void pci_no_aer(void); | ||
1472 | bool pci_aer_available(void); | 1471 | bool pci_aer_available(void); |
1473 | int pci_aer_init(struct pci_dev *dev); | ||
1474 | #else | 1472 | #else |
1475 | static inline void pci_no_aer(void) { } | ||
1476 | static inline bool pci_aer_available(void) { return false; } | 1473 | static inline bool pci_aer_available(void) { return false; } |
1477 | static inline int pci_aer_init(struct pci_dev *d) { return -ENODEV; } | ||
1478 | #endif | 1474 | #endif |
1479 | 1475 | ||
1480 | #ifdef CONFIG_PCIE_ECRC | 1476 | #ifdef CONFIG_PCIE_ECRC |