X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Kbuild.common;h=09296e7032af804303e8eb8b3cc5dedff72ac3b7;hb=9143c6d5444e809b9d411c07a8dae94c151668ae;hp=c7cbd0b24aae7b376b45d53f2d7b0c09e5d953b8;hpb=6c27a5ccba05b088fbfcf8cd982c25649838298d;p=lttng-modules.git diff --git a/Kbuild.common b/Kbuild.common index c7cbd0b2..09296e70 100644 --- a/Kbuild.common +++ b/Kbuild.common @@ -50,25 +50,9 @@ 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 +mnt_ns_dep = $(srctree)/fs/mount.h +ifeq ($(wildcard $(mnt_ns_dep)),) + ccflags-y += -DLTTNG_MNT_NS_MISSING_HEADER endif # vim:syntax=make