Revert "ANDROID: kbuild: fix dynamic ftrace with clang LTO"

This reverts commit c4fa71e251 as the LTO
feature causes merge issues with 5.8-rc1.  So remove it for now and
allow the developer to add the latest version of the patches later on.

Cc: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Id688d5e1e8b69b13aeb49da2716bfe45415e7c39
This commit is contained in:
Greg Kroah-Hartman
2020-06-24 08:54:38 +02:00
parent 4f60494720
commit 16fe007e61
9 changed files with 5 additions and 53 deletions

View File

@@ -47,12 +47,4 @@
# define __noscs __attribute__((__no_sanitize__("shadow-call-stack")))
#endif
#ifdef CONFIG_LTO_CLANG
#ifdef CONFIG_FTRACE_MCOUNT_RECORD
#define __norecordmcount \
__attribute__((__section__(".text..ftrace")))
#endif
#define __nocfi __attribute__((__no_sanitize__("cfi")))
#endif