aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-09-14 23:31:02 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-09-14 23:31:02 -0400
commit5b945fd2c34c6324752fc793266b4598a307d765 (patch)
tree48e7684f00e165730c6a252ebe0739479c532971
parent090b75bcba62e8e0e43c8acdbc230d26c5b731dc (diff)
parentb1f4ff74fcb0e82664e8633cc225c2ad4234878a (diff)
Merge tag 'trace-v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace
Pull tracing fix from Steven Rostedt: "This fixes an issue with the build system caused by a change that modifies CC_FLAGS_FTRACE. The issue is that it breaks the dependencies and causes "make targz-pkg" to rebuild the entire world" * tag 'trace-v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace: tracing/Makefile: Fix handling redefinition of CC_FLAGS_FTRACE
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4d5c883a98e5..a5ef6818157a 100644
--- a/Makefile
+++ b/Makefile
@@ -616,6 +616,11 @@ CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
616 $(call cc-disable-warning,maybe-uninitialized,) 616 $(call cc-disable-warning,maybe-uninitialized,)
617export CFLAGS_GCOV 617export CFLAGS_GCOV
618 618
619# The arch Makefiles can override CC_FLAGS_FTRACE. We may also append it later.
620ifdef CONFIG_FUNCTION_TRACER
621 CC_FLAGS_FTRACE := -pg
622endif
623
619# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default 624# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
620# values of the respective KBUILD_* variables 625# values of the respective KBUILD_* variables
621ARCH_CPPFLAGS := 626ARCH_CPPFLAGS :=
@@ -755,9 +760,6 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
755endif 760endif
756 761
757ifdef CONFIG_FUNCTION_TRACER 762ifdef CONFIG_FUNCTION_TRACER
758ifndef CC_FLAGS_FTRACE
759CC_FLAGS_FTRACE := -pg
760endif
761ifdef CONFIG_FTRACE_MCOUNT_RECORD 763ifdef CONFIG_FTRACE_MCOUNT_RECORD
762 # gcc 5 supports generating the mcount tables directly 764 # gcc 5 supports generating the mcount tables directly
763 ifeq ($(call cc-option-yn,-mrecord-mcount),y) 765 ifeq ($(call cc-option-yn,-mrecord-mcount),y)