X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Kbuild.common;h=f58910270f37de95e28deb0022c9e911c6d9dd22;hb=2a51de8b3ac8f24cae8a33625f1cf8638ac0a5a3;hp=dde47a95a4b1cbfa3a973d1a9fb2ef3f5111db83;hpb=b78104db53f97c10add30016e365855a26f6e01e;p=lttng-modules.git diff --git a/Kbuild.common b/Kbuild.common index dde47a95..f5891027 100644 --- a/Kbuild.common +++ b/Kbuild.common @@ -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