X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Kbuild.common;h=d0fcd664bf5c25ecca47a4573ca73e7db203fa76;hb=eb94dcd91d4ea827ebe0353249e309f1629a5032;hp=e2934e20f4880d94266a7f3d1ca39682abd56a8b;hpb=a6cf40a4491954d6f81052f8bbce757f73727f16;p=lttng-modules.git diff --git a/Kbuild.common b/Kbuild.common index e2934e20..d0fcd664 100644 --- a/Kbuild.common +++ b/Kbuild.common @@ -1,4 +1,4 @@ -# SPDX-License-Identifier: (GPL-2.0 OR LGPL-2.1) +# SPDX-License-Identifier: (GPL-2.0-only OR LGPL-2.1-only) # Work-around for distro-specific public modules ABI breakages. # Some distributions break the public module instrumentation ABI @@ -50,27 +50,6 @@ endif EXTRA_VERSION_PATCHES:=$(shell $(TOP_LTTNG_MODULES_DIR)/scripts/extra-version-patches.sh $(TOP_LTTNG_MODULES_DIR)) -# Starting with kernel 4.12, the ftrace header was moved to private headers -# and as such is not available when building against distro headers instead -# of the full kernel sources. In the situation, define LTTNG_FTRACE_MISSING_HEADER -# so we can enable the compat code even if CONFIG_DYNAMIC_FTRACE is enabled. -ifneq ($(CONFIG_DYNAMIC_FTRACE),) - ftrace_dep = $(srctree)/kernel/trace/trace.h - ftrace_dep_check = $(wildcard $(ftrace_dep)) - have_ftrace_header = $(shell \ - if [ $(VERSION) -ge 5 -o \( $(VERSION) -eq 4 -a $(PATCHLEVEL) -ge 12 \) ] ; then \ - if [ -z "$(ftrace_dep_check)" ] ; then \ - echo "no" ; \ - exit ; \ - fi; \ - fi; \ - echo "yes" ; \ - ) - ifeq ($(have_ftrace_header), no) - ccflags-y += -DLTTNG_FTRACE_MISSING_HEADER - endif -endif - mnt_ns_dep = $(srctree)/fs/mount.h ifeq ($(wildcard $(mnt_ns_dep)),) ccflags-y += -DLTTNG_MNT_NS_MISSING_HEADER