X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng-kernel-version.h;h=0eb56b3820d256bcce5ef399552f95d2ea398e08;hb=refs%2Fheads%2Fstable-2.4;hp=280a398a93e370db16f95b416802fb0ef0946213;hpb=5fa38800d965d5fa35a2c0c9a93e330711ec87e0;p=lttng-modules.git diff --git a/lttng-kernel-version.h b/lttng-kernel-version.h index 280a398a..0eb56b38 100644 --- a/lttng-kernel-version.h +++ b/lttng-kernel-version.h @@ -27,10 +27,10 @@ /* * This macro checks if the kernel version is between the two specified - * versions (inclusive). + * versions (lower limit inclusive, upper limit exclusive). */ #define LTTNG_KERNEL_RANGE(a_low, b_low, c_low, a_high, b_high, c_high) \ (LINUX_VERSION_CODE >= KERNEL_VERSION(a_low, b_low, c_low) && \ - LINUX_VERSION_CODE <= KERNEL_VERSION(a_high, b_high, c_high)) + LINUX_VERSION_CODE < KERNEL_VERSION(a_high, b_high, c_high)) #endif /* _LTTNG_KERNEL_VERSION_H */