X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Kbuild.common;h=3d165577cee5cd626710c245953b5f375804261d;hb=0f936f958eb28fe1dc92493b31c662fc1377baff;hp=09296e7032af804303e8eb8b3cc5dedff72ac3b7;hpb=2bf9218e860dc384419eda9ebdf561d86f38a85e;p=lttng-modules.git diff --git a/Kbuild.common b/Kbuild.common index 09296e70..3d165577 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