Messages in this thread | | | From | Sami Tolvanen <> | Date | Thu, 17 Oct 2019 14:18:20 -0700 | Subject | Re: [PATCH] ftrace: fix function type mismatches |
| |
On Tue, Oct 15, 2019 at 6:01 AM Steven Rostedt <rostedt@goodmis.org> 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
| |