[PATCH] riscv/ftrace: Fix the problem modules cannot find _mcount

Alan Kao alankao at andestech.com
Mon May 7 20:21:57 PDT 2018

Enabling ftrace and module support at the same time fails the kernel
build process, because modules cannot find the _mcount symbol.  This
patch fixes this issue.

Signed-off-by: Alan Kao <alankao at andestech.com>
Cc: Greentime Hu <greentime at andestech.com>
Cc: Zong Li <zong at andestech.com>
 arch/riscv/kernel/mcount.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/riscv/kernel/mcount.S b/arch/riscv/kernel/mcount.S
index ce9bdc57a2a1..5721624886a1 100644
--- a/arch/riscv/kernel/mcount.S
+++ b/arch/riscv/kernel/mcount.S
@@ -126,5 +126,5 @@ do_trace:

More information about the linux-riscv mailing list