Re: [PATCH] ftrace: fix function type mismatches

From: Sami Tolvanen
Date: Thu Oct 17 2019 - 17:18:35 EST


On Tue, Oct 15, 2019 at 6:01 AM Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
> Would this work for you?

> #define MCOUNT_REC() . = ALIGN(8); \
> __start_mcount_loc = .; \
> KEEP(*(__patchable_function_entries)) \
> - __stop_mcount_loc = .;
> + __stop_mcount_loc = .; \
> + ftrace_graph_stub = ftrace_stub;

> +extern void ftrace_graph_stub(struct ftrace_graph_ret *);

Yes, it looks like the compiler is actually happy with this approach.
Thank you for the patch!

Sami