fix: UTS_UBUNTU_RELEASE_ABI is close to overflow
[lttng-modules.git] / lttng-kernel-version.h
index 806d978ba6debb946af3f47b8703a5b2a9f2f9b2..42d748f9c415653202da20e0633a35b2cd1d0b68 100644 (file)
 /* Ubuntu */
 
 #define LTTNG_UBUNTU_KERNEL_VERSION(a, b, c, d) \
-       (((LTTNG_KERNEL_VERSION(a, b, c)) << 8) + (d))
+       (((LTTNG_KERNEL_VERSION(a, b, c)) << 16) + (d))
 
 #ifdef UTS_UBUNTU_RELEASE_ABI
 #define LTTNG_UBUNTU_VERSION_CODE \
-       ((LTTNG_LINUX_VERSION_CODE << 8) + UTS_UBUNTU_RELEASE_ABI)
+       ((LTTNG_LINUX_VERSION_CODE << 16) + UTS_UBUNTU_RELEASE_ABI)
 #else
 #define LTTNG_UBUNTU_VERSION_CODE      0
 #endif
This page took 0.022696 seconds and 4 git commands to generate.