pci: Use conftest to find if pci_enable_pcie_error_reporting() present

Use conftest to find if API pci_enable_pcie_error_reporting()
is present. This API is dropped from Linux 6.5 with change
commit 7ec4b34be42345 ("PCI/AER: Unexport
pci_enable_pcie_error_reporting()")

Bug 4346767

Change-Id: Ib0037544b4480b37c0ed6ac8b9ef9aef6ae82619
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3028742
Reviewed-by: Shardar Mohammed <smohammed@nvidia.com>
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
This commit is contained in:
Laxman Dewangan
2023-12-05 18:07:41 +00:00
committed by mobile promotions
parent f9f8b37e74
commit bf46060d1e
6 changed files with 23 additions and 6 deletions

View File

@@ -749,7 +749,7 @@ static int tvnet_host_probe(struct pci_dev *pdev,
goto free_netdev;
}
#if !defined(NV_DROP_PCIE_ERROR_REPORTING)
#if defined(NV_PCI_ENABLE_PCIE_ERROR_REPORTING_PRESENT) /* Linux 6.5 */
pci_enable_pcie_error_reporting(pdev);
#endif