Skip to content

Commit 5b945fd

Browse files
committed
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
2 parents 090b75b + b1f4ff7 commit 5b945fd

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,11 @@ CFLAGS_GCOV := -fprofile-arcs -ftest-coverage \
616616
$(call cc-disable-warning,maybe-uninitialized,)
617617
export CFLAGS_GCOV
618618

619+
# The arch Makefiles can override CC_FLAGS_FTRACE. We may also append it later.
620+
ifdef CONFIG_FUNCTION_TRACER
621+
CC_FLAGS_FTRACE := -pg
622+
endif
623+
619624
# The arch Makefile can set ARCH_{CPP,A,C}FLAGS to override the default
620625
# values of the respective KBUILD_* variables
621626
ARCH_CPPFLAGS :=
@@ -755,9 +760,6 @@ KBUILD_CFLAGS += $(call cc-option, -femit-struct-debug-baseonly) \
755760
endif
756761

757762
ifdef CONFIG_FUNCTION_TRACER
758-
ifndef CC_FLAGS_FTRACE
759-
CC_FLAGS_FTRACE := -pg
760-
endif
761763
ifdef CONFIG_FTRACE_MCOUNT_RECORD
762764
# gcc 5 supports generating the mcount tables directly
763765
ifeq ($(call cc-option-yn,-mrecord-mcount),y)

0 commit comments

Comments
 (0)