Skip to content

Commit

Permalink
XDMA.ko build fails on kernel version 5.8.0 (used in Ubuntu 20.04). A…
Browse files Browse the repository at this point in the history
…pply changes seen in @jberaud's commit in Xilinx's dma_ip_drivers PR#69 (#536)
  • Loading branch information
jelicicm authored Oct 4, 2021
1 parent ea4baee commit 85d621d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions sdk/linux_kernel_drivers/xdma/xdma_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,11 @@ 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
pci_aer_clear_nonfatal_status(pdev);
#else
pci_cleanup_aer_uncorrect_error_status(pdev);
#endif
}

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

0 comments on commit 85d621d

Please sign in to comment.