X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=Kbuild.common;fp=Kbuild.common;h=f64cb09d5ff0c5a83bdf22d9e75b2e74d9aa1f89;hb=7b25fa17c155f7088af45e843a711250ab0e7cb7;hp=d0fcd664bf5c25ecca47a4573ca73e7db203fa76;hpb=5f4c791e2ad2c814101ccdb500e65543f2792c41;p=lttng-modules.git diff --git a/Kbuild.common b/Kbuild.common index d0fcd664..f64cb09d 100644 --- a/Kbuild.common +++ b/Kbuild.common @@ -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