Unverified Commit af074ed5 authored by riggy2013's avatar riggy2013 Committed by GitHub

Update xdma_mod.c

per Julien BERAUD, fix pci_aer name change issue in RedHat 8.3 in a more consistent coding style.
parent 1777447e
......@@ -293,12 +293,12 @@ static void xdma_error_resume(struct pci_dev *pdev)
struct xdma_pci_dev *xpdev = dev_get_drvdata(&pdev->dev);
pr_info("dev 0x%p,0x%p.\n", pdev, xpdev);
#if KERNEL_VERSION(5, 7, 0) <= LINUX_VERSION_CODE || \
defined(RHEL_MAJOR) && RHEL_RELEASE_VERSION(8, 3) <= RHEL_RELEASE_CODE
#if PCI_AER_NAMECHANGE
pci_aer_clear_nonfatal_status(pdev);
#else
pci_cleanup_aer_uncorrect_error_status(pdev);
#endif
}
#if KERNEL_VERSION(4, 13, 0) <= LINUX_VERSION_CODE
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment