X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=Kbuild.common;h=f64cb09d5ff0c5a83bdf22d9e75b2e74d9aa1f89;hb=refs%2Fheads%2Fsow-2020-0002-rev2;hp=d0fcd664bf5c25ecca47a4573ca73e7db203fa76;hpb=b7cdc18250880cc44edeef4a4b42c8ac7a135a6d;p=deliverable%2Flttng-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