From: Steven Rostedt Date: Fri, 20 Jul 2012 15:13:07 +0000 (-0400) Subject: ftrace: Only compile ftrace selftest if selftests are enabled X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47239c4d8d6a24796039cada69d477a2b8cac9d6;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ftrace: Only compile ftrace selftest if selftests are enabled No need to compile in the ftrace selftest helper file if selftests are not being executed. Signed-off-by: Steven Rostedt --- diff --git a/kernel/trace/Makefile b/kernel/trace/Makefile index b831087c8200..837090808aac 100644 --- a/kernel/trace/Makefile +++ b/kernel/trace/Makefile @@ -5,10 +5,12 @@ ifdef CONFIG_FUNCTION_TRACER ORIG_CFLAGS := $(KBUILD_CFLAGS) KBUILD_CFLAGS = $(subst -pg,,$(ORIG_CFLAGS)) +ifdef CONFIG_FTRACE_SELFTEST # selftest needs instrumentation CFLAGS_trace_selftest_dynamic.o = -pg obj-y += trace_selftest_dynamic.o endif +endif # If unlikely tracing is enabled, do not trace these files ifdef CONFIG_TRACING_BRANCHES