X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=Makefile.ABI.workarounds;h=f84e4ed022d1403d86ef0aed1adc2980eb7cadcf;hb=a7cedfa39158dfaf56929da832a4024d4a9379e5;hp=04b223a8065311395d181da4bc64c62a65b85a08;hpb=2df5d4b71ac1b5f2ad3d66cc5b1413ffd8897bd3;p=lttng-modules.git diff --git a/Makefile.ABI.workarounds b/Makefile.ABI.workarounds index 04b223a8..f84e4ed0 100644 --- a/Makefile.ABI.workarounds +++ b/Makefile.ABI.workarounds @@ -47,24 +47,3 @@ ifneq ($(EXTRA_VERSION_GIT), 0) endif EXTRA_VERSION_PATCHES:=$(shell $(TOP_LTTNG_MODULES_DIR)/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