ftrace_graph_entry_stub() is defined in generic code, its prototype should be in the generic header and not defined throughout architecture specific code in order to use it.
Showing the changes to include/linux (1 of 3 files). Show all
Unified · Split
| @@ -751,6 +751,8 @@ struct ftrace_graph_ret { · 750 unmodified lines | ||
| 751 | 751 | typedef void (*trace_func_graph_ret_t)(struct ftrace_graph_ret *); /* return */ |
| 752 | 752 | typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */ |
| 753 | 753 | |
| 754 | +extern int ftrace_graph_entry_stub(struct ftrace_graph_ent *trace); | |
| 755 | + | |
| 754 | 756 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
| 755 | 757 | |
| 756 | 758 | struct fgraph_ops { |