fix: RT_PATCH_VERSION is close to overflow
[deliverable/lttng-modules.git] / include / lttng / kernel-version.h
index 747a674fc80cab132e0d7fe9ddf2e97b42e91c33..88f621e983f4fe8d5ffc502fe3f882c412f08d81 100644 (file)
 /* RT patch */
 
 #define LTTNG_RT_KERNEL_VERSION(a, b, c, d) \
-       (((LTTNG_KERNEL_VERSION(a, b, c)) << 8) + (d))
+       (((LTTNG_KERNEL_VERSION(a, b, c)) << 16) + (d))
 
 #ifdef RT_PATCH_VERSION
 #define LTTNG_RT_VERSION_CODE \
-       ((LTTNG_LINUX_VERSION_CODE << 8) + RT_PATCH_VERSION)
+       ((LTTNG_LINUX_VERSION_CODE << 16) + RT_PATCH_VERSION)
 #else
 #define LTTNG_RT_VERSION_CODE  0
 #endif
This page took 0.023562 seconds and 5 git commands to generate.