From: Palmer Dabbelt <palmer@sifive.com> To: alankao@andestech.com, linux-riscv@lists.infradead.org Cc: linux-kernel@vger.kernel.org, Greentime Hu <greentime@andestech.com>, Zong Li <zong@andestech.com>, Palmer Dabbelt <palmer@sifive.com> Subject: [PATCH] riscv/ftrace: Export _mcount when FUNCTION_GRAPH_TRACER isn't set Date: Mon, 4 Jun 2018 13:30:28 -0700 [thread overview] Message-ID: <20180604203028.13886-2-palmer@sifive.com> (raw) In-Reply-To: <20180604203028.13886-1-palmer@sifive.com> From: Alan Kao <alankao@andestech.com> The EXPORT_SYMBOL(_mcount) for RISC-V ended up inside a CONFIG_FUNCTION_GRAPH_TRACER ifdef. If you enable modules without enabling CONFIG_FUNCTION_GRAPH_TRACER then you'll get a build error without this patch because the modules won't be able to find _mcount. The new behavior is to export _mcount whenever CONFIG_FUNCTION_TRACER is defined. This matches what every other architecture is doing. Signed-off-by: Alan Kao <alankao@andestech.com> Cc: Greentime Hu <greentime@andestech.com> Cc: Zong Li <zong@andestech.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.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: RESTORE_ABI_STATE ret ENDPROC(_mcount) -EXPORT_SYMBOL(_mcount) #endif +EXPORT_SYMBOL(_mcount) -- 2.16.4
WARNING: multiple messages have this Message-ID (diff)
From: palmer@sifive.com (Palmer Dabbelt) To: linux-riscv@lists.infradead.org Subject: [PATCH] riscv/ftrace: Export _mcount when FUNCTION_GRAPH_TRACER isn't set Date: Mon, 4 Jun 2018 13:30:28 -0700 [thread overview] Message-ID: <20180604203028.13886-2-palmer@sifive.com> (raw) In-Reply-To: <20180604203028.13886-1-palmer@sifive.com> From: Alan Kao <alankao@andestech.com> The EXPORT_SYMBOL(_mcount) for RISC-V ended up inside a CONFIG_FUNCTION_GRAPH_TRACER ifdef. If you enable modules without enabling CONFIG_FUNCTION_GRAPH_TRACER then you'll get a build error without this patch because the modules won't be able to find _mcount. The new behavior is to export _mcount whenever CONFIG_FUNCTION_TRACER is defined. This matches what every other architecture is doing. Signed-off-by: Alan Kao <alankao@andestech.com> Cc: Greentime Hu <greentime@andestech.com> Cc: Zong Li <zong@andestech.com> Signed-off-by: Palmer Dabbelt <palmer@sifive.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: RESTORE_ABI_STATE ret ENDPROC(_mcount) -EXPORT_SYMBOL(_mcount) #endif +EXPORT_SYMBOL(_mcount) -- 2.16.4
next prev parent reply other threads:[~2018-06-04 20:31 UTC|newest] Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-05-08 3:21 [PATCH] riscv/ftrace: Fix the problem modules cannot find _mcount Alan Kao 2018-05-08 3:21 ` Alan Kao 2018-05-08 13:11 ` Steven Rostedt 2018-05-08 13:11 ` Steven Rostedt 2018-05-09 2:36 ` Alan Kao 2018-05-09 2:36 ` Alan Kao 2018-05-09 3:02 ` Steven Rostedt 2018-05-09 3:02 ` Steven Rostedt 2018-06-04 20:30 ` Palmer Dabbelt 2018-06-04 20:30 ` Palmer Dabbelt 2018-06-04 20:30 ` Palmer Dabbelt [this message] 2018-06-04 20:30 ` [PATCH] riscv/ftrace: Export _mcount when FUNCTION_GRAPH_TRACER isn't set Palmer Dabbelt 2018-06-05 1:12 ` Alan Kao 2018-06-05 1:12 ` Alan Kao
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180604203028.13886-2-palmer@sifive.com \ --to=palmer@sifive.com \ --cc=alankao@andestech.com \ --cc=greentime@andestech.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-riscv@lists.infradead.org \ --cc=zong@andestech.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.