diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-12-17 16:01:39 +0000 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-01-14 15:09:03 -0800 |
commit | 67d945778099b14324811fe67c5aff2cda7a7ad5 (patch) | |
tree | ee8bb75d0f07e6c3a06d0dc95ca6972cb519c84f /arch/riscv/kernel | |
parent | edfcf91fe4f84984860416a58719b48a71893909 (diff) | |
download | lwn-67d945778099b14324811fe67c5aff2cda7a7ad5.tar.gz lwn-67d945778099b14324811fe67c5aff2cda7a7ad5.zip |
riscv: Fixup wrong ftrace remove cflag
We must use $(CC_FLAGS_FTRACE) instead of directly using -pg. It
will cause -fpatchable-function-entry error.
Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel')
-rw-r--r-- | arch/riscv/kernel/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/riscv/kernel/Makefile b/arch/riscv/kernel/Makefile index f6caf4d9ca15..22c66dde18a0 100644 --- a/arch/riscv/kernel/Makefile +++ b/arch/riscv/kernel/Makefile @@ -4,8 +4,8 @@ # ifdef CONFIG_FTRACE -CFLAGS_REMOVE_ftrace.o = -pg -CFLAGS_REMOVE_patch.o = -pg +CFLAGS_REMOVE_ftrace.o = $(CC_FLAGS_FTRACE) +CFLAGS_REMOVE_patch.o = $(CC_FLAGS_FTRACE) endif extra-y += head.o |