Skip to content

Commit 85d621d

Browse files
authored
XDMA.ko build fails on kernel version 5.8.0 (used in Ubuntu 20.04). Apply changes seen in @jberaud's commit in Xilinx's dma_ip_drivers PR#69 (#536)
1 parent ea4baee commit 85d621d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sdk/linux_kernel_drivers/xdma/xdma_mod.c

+4
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,11 @@ static void xdma_error_resume(struct pci_dev *pdev)
296296
struct xdma_pci_dev *xpdev = dev_get_drvdata(&pdev->dev);
297297

298298
pr_info("dev 0x%p,0x%p.\n", pdev, xpdev);
299+
#if KERNEL_VERSION(5, 7, 0) <= LINUX_VERSION_CODE
300+
pci_aer_clear_nonfatal_status(pdev);
301+
#else
299302
pci_cleanup_aer_uncorrect_error_status(pdev);
303+
#endif
300304
}
301305

302306
#if KERNEL_VERSION(4, 13, 0) <= LINUX_VERSION_CODE

0 commit comments

Comments
 (0)