X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=src%2Fprobes%2Flttng-probe-kvm-x86.c;h=f2767bb57e4ba2ba584f26f90cdb7f4e25822c04;hb=116e2b72141ca18cdf8c875aac4631f48821b016;hp=4e4f5c8361fa1b92afc43ce05bac2d9eae4f0887;hpb=cfa6cc1d0f01c2cfcc1a679abf3a6572d411c309;p=lttng-modules.git diff --git a/src/probes/lttng-probe-kvm-x86.c b/src/probes/lttng-probe-kvm-x86.c index 4e4f5c83..f2767bb5 100644 --- a/src/probes/lttng-probe-kvm-x86.c +++ b/src/probes/lttng-probe-kvm-x86.c @@ -12,15 +12,12 @@ #include #include -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(5,7,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,7,0) || \ + LTTNG_RHEL_KERNEL_RANGE(4,18,0,240,15,1, 4,19,0,0,0,0)) #include #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) #include -#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */ -#include <../../virt/kvm/iodev.h> -#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,1,0)) */ /* * Create the tracepoint static inlines from the kernel to validate that our