summaryrefslogtreecommitdiff
path: root/include/linux/aer.h
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2023-07-11 02:21:36 +0300
committerBjorn Helgaas <bhelgaas@google.com>2023-07-13 19:17:17 +0300
commit7ec4b34be4234599cf1241ef807cdb7c3636f6fe (patch)
tree348ab193dc2a3ced15fb6dee7922bc717e417dac /include/linux/aer.h
parent69b264df8a412820e98867dbab871c6526c5e5aa (diff)
downloadlinux-7ec4b34be4234599cf1241ef807cdb7c3636f6fe.tar.xz
PCI/AER: Unexport pci_enable_pcie_error_reporting()
pci_enable_pcie_error_reporting() is used only inside aer.c. Stop exposing it outside the file. Link: https://lore.kernel.org/r/20230710232136.233034-3-helgaas@kernel.org Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Diffstat (limited to 'include/linux/aer.h')
-rw-r--r--include/linux/aer.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h
index aadc9242cb20..2dd175f5debd 100644
--- a/include/linux/aer.h
+++ b/include/linux/aer.h
@@ -41,14 +41,8 @@ struct aer_capability_regs {
};
#if defined(CONFIG_PCIEAER)
-/* PCIe port driver needs this function to enable AER */
-int pci_enable_pcie_error_reporting(struct pci_dev *dev);
int pci_aer_clear_nonfatal_status(struct pci_dev *dev);
#else
-static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev)
-{
- return -EINVAL;
-}
static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev)
{
return -EINVAL;