diff options
author | Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com> | 2023-08-23 23:43:04 +0000 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2023-09-11 15:24:16 -0700 |
commit | 49f776724e64c27dd861e7ac8da9d42f01d9d172 (patch) | |
tree | 4ff227fd92c0a16bafc9f3b279d302c911cff2dd /include/linux | |
parent | 0339dc39a521ead3dbcf101acd8c028c61db57dc (diff) | |
download | linux-stable-49f776724e64c27dd861e7ac8da9d42f01d9d172.tar.gz linux-stable-49f776724e64c27dd861e7ac8da9d42f01d9d172.tar.bz2 linux-stable-49f776724e64c27dd861e7ac8da9d42f01d9d172.zip |
PCI/AER: Export pcie_aer_is_native()
Export and move the declaration of pcie_aer_is_native() to a common header
file to be reused by cxl/pci module.
Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Reviewed-by: Robert Richter <rrichter@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20230823234305.27333-3-Smita.KoralahalliChannabasappa@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/aer.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/aer.h b/include/linux/aer.h index 2dd175f5debd..29cc10220952 100644 --- a/include/linux/aer.h +++ b/include/linux/aer.h @@ -42,11 +42,13 @@ struct aer_capability_regs { #if defined(CONFIG_PCIEAER) int pci_aer_clear_nonfatal_status(struct pci_dev *dev); +int pcie_aer_is_native(struct pci_dev *dev); #else static inline int pci_aer_clear_nonfatal_status(struct pci_dev *dev) { return -EINVAL; } +static inline int pcie_aer_is_native(struct pci_dev *dev) { return 0; } #endif void cper_print_aer(struct pci_dev *dev, int aer_severity, |