Skip to content

Commit

Permalink
kasan: Makefile: Replace -pg with CC_FLAGS_FTRACE
Browse files Browse the repository at this point in the history
In preparation for arm64 supporting ftrace built on other compiler
options, let's have Makefiles remove the $(CC_FLAGS_FTRACE) flags,
whatever these may be, rather than assuming '-pg'.

There should be no functional change as a result of this patch.

Reviewed-by: Mark Rutland <[email protected]>
Acked-by: Andrey Ryabinin <[email protected]>
Signed-off-by: Torsten Duwe <[email protected]>
Signed-off-by: Will Deacon <[email protected]>
  • Loading branch information
Torsten Duwe authored and wildea01 committed Apr 9, 2019
1 parent e1a7eaf commit e209274
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mm/kasan/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ UBSAN_SANITIZE_generic.o := n
UBSAN_SANITIZE_tags.o := n
KCOV_INSTRUMENT := n

CFLAGS_REMOVE_common.o = -pg
CFLAGS_REMOVE_generic.o = -pg
CFLAGS_REMOVE_tags.o = -pg
CFLAGS_REMOVE_common.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_generic.o = $(CC_FLAGS_FTRACE)
CFLAGS_REMOVE_tags.o = $(CC_FLAGS_FTRACE)

# Function splitter causes unnecessary splits in __asan_load1/__asan_store1
# see: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63533
Expand Down

0 comments on commit e209274

Please sign in to comment.