fix: sublevel version overflow in LINUX_VERSION_CODE
[lttng-modules.git] / Kbuild.common
index 09296e7032af804303e8eb8b3cc5dedff72ac3b7..3d165577cee5cd626710c245953b5f375804261d 100644 (file)
@@ -1,5 +1,9 @@
 # SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1)
 
+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.023245 seconds and 4 git commands to generate.