Commit 2ec66954 authored by Julien's avatar Julien

xdma_mod: fix build with kernel 5.7 or newer

pci_cleanup_aer_uncorrect_error_status replaced by
pci_aer_clear_nonfatal_status
parent 0474cb9a
...@@ -285,7 +285,11 @@ static void xdma_error_resume(struct pci_dev *pdev) ...@@ -285,7 +285,11 @@ static void xdma_error_resume(struct pci_dev *pdev)
struct xdma_pci_dev *xpdev = dev_get_drvdata(&pdev->dev); struct xdma_pci_dev *xpdev = dev_get_drvdata(&pdev->dev);
pr_info("dev 0x%p,0x%p.\n", pdev, xpdev); pr_info("dev 0x%p,0x%p.\n", pdev, xpdev);
#if KERNEL_VERSION(5, 7, 0) <= LINUX_VERSION_CODE
pci_aer_clear_nonfatal_status(pdev);
#else
pci_cleanup_aer_uncorrect_error_status(pdev); pci_cleanup_aer_uncorrect_error_status(pdev);
#endif
} }
#if KERNEL_VERSION(4, 13, 0) <= LINUX_VERSION_CODE #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