Unverified Commit 1777447e authored by riggy2013's avatar riggy2013 Committed by GitHub

Update libxdma.h

per Julien BERAUD, fix pci_aer name change issue in RedHat 8.3 in a more consistent coding style.
parent 4d4bf2a6
...@@ -53,6 +53,12 @@ ...@@ -53,6 +53,12 @@
# define HAS_SWAKE_UP (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0)) # define HAS_SWAKE_UP (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 6, 0))
#endif #endif
#if defined(RHEL_RELEASE_CODE)
# define PCI_AER_NAMECHANGE (RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(8, 3))
#else
# define PCI_AER_NAMECHANGE (LINUX_VERSION_CODE >= KERNEL_VERSION(5, 7, 0))
#endif
#if HAS_SWAKE_UP #if HAS_SWAKE_UP
#include <linux/swait.h> #include <linux/swait.h>
#endif #endif
......
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