Skip to content

Commit edf072d

Browse files
Torsten Duwewildea01
authored andcommitted
arm64: Makefile: Replace -pg with CC_FLAGS_FTRACE
In preparation for arm64 supporting ftrace built on other compiler options, let's have the arm64 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 <mark.rutland@arm.com> Signed-off-by: Torsten Duwe <duwe@suse.de> Signed-off-by: Will Deacon <will.deacon@arm.com>
1 parent f6e5643 commit edf072d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎arch/arm64/kernel/Makefile‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ CPPFLAGS_vmlinux.lds := -DTEXT_OFFSET=$(TEXT_OFFSET)
77
AFLAGS_head.o := -DTEXT_OFFSET=$(TEXT_OFFSET)
88
CFLAGS_armv8_deprecated.o := -I$(src)
99

10-
CFLAGS_REMOVE_ftrace.o = -pg
11-
CFLAGS_REMOVE_insn.o = -pg
12-
CFLAGS_REMOVE_return_address.o = -pg
10+
CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE)
11+
CFLAGS_REMOVE_insn.o = $(CC_FLAGS_FTRACE)
12+
CFLAGS_REMOVE_return_address.o = $(CC_FLAGS_FTRACE)
1313

1414
# Object file lists.
1515
obj-y := debug-monitors.o entry.o irq.o fpsimd.o \

‎arch/arm64/lib/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ CFLAGS_atomic_ll_sc.o := -ffixed-x1 -ffixed-x2 \
2424
-fcall-saved-x10 -fcall-saved-x11 -fcall-saved-x12 \
2525
-fcall-saved-x13 -fcall-saved-x14 -fcall-saved-x15 \
2626
-fcall-saved-x18 -fomit-frame-pointer
27-
CFLAGS_REMOVE_atomic_ll_sc.o := -pg
27+
CFLAGS_REMOVE_atomic_ll_sc.o := $(CC_FLAGS_FTRACE)
2828
GCOV_PROFILE_atomic_ll_sc.o := n
2929
KASAN_SANITIZE_atomic_ll_sc.o := n
3030
KCOV_INSTRUMENT_atomic_ll_sc.o := n

0 commit comments

Comments
 (0)