fix: sublevel version overflow in LINUX_VERSION_CODE
[lttng-modules.git] / Kbuild.common
index d0fcd664bf5c25ecca47a4573ca73e7db203fa76..f64cb09d5ff0c5a83bdf22d9e75b2e74d9aa1f89 100644 (file)
@@ -1,5 +1,9 @@
 # SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only)
 
+ccflags-y += -DLTTNG_LINUX_MAJOR=$(VERSION)
+ccflags-y += -DLTTNG_LINUX_MINOR=$(PATCHLEVEL)
+ccflags-y += -DLTTNG_LINUX_PATCH=$(SUBLEVEL)
+
 # Work-around for distro-specific public modules ABI breakages.
 # Some distributions break the public module instrumentation ABI
 # compared to upstream stable kernels without providing other mean than
This page took 0.022614 seconds and 4 git commands to generate.