diff options
author | Guo Ren <guoren@linux.alibaba.com> | 2020-12-17 17:01:39 +0100 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2021-01-15 00:09:03 +0100 |
commit | 67d945778099b14324811fe67c5aff2cda7a7ad5 (patch) | |
tree | ee8bb75d0f07e6c3a06d0dc95ca6972cb519c84f /arch/riscv/kernel/Makefile | |
parent | riscv: Fixup compile error BUILD_BUG_ON failed (diff) | |
download | linux-67d945778099b14324811fe67c5aff2cda7a7ad5.tar.xz linux-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/Makefile')
-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 |