summaryrefslogtreecommitdiffstats
path: root/kernel/trace
diff options
context:
space:
mode:
authorSteven Rostedt (VMware)2018-11-19 13:40:39 +0100
committerGreg Kroah-Hartman2018-12-05 19:32:10 +0100
commit72c33b233f051e9e58d7e6b9213e985747530ec1 (patch)
tree049b950ea3eb200ac7c7353948f66f9dbfcf0b6a /kernel/trace
parentMIPS: function_graph: Simplify with function_graph_enter() (diff)
downloadkernel-qcow2-linux-72c33b233f051e9e58d7e6b9213e985747530ec1.tar.gz
kernel-qcow2-linux-72c33b233f051e9e58d7e6b9213e985747530ec1.tar.xz
kernel-qcow2-linux-72c33b233f051e9e58d7e6b9213e985747530ec1.zip
function_graph: Make ftrace_push_return_trace() static
commit d125f3f866df88da5a85df00291f88f0baa89f7c upstream. As all architectures now call function_graph_enter() to do the entry work, no architecture should ever call ftrace_push_return_trace(). Make it static. This is needed to prepare for a fix of a design bug on how the curr_ret_stack is used. Cc: stable@kernel.org Fixes: 03274a3ffb449 ("tracing/fgraph: Adjust fgraph depth before calling trace return callback") Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/trace')
-rw-r--r--kernel/trace/trace_functions_graph.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/trace_functions_graph.c b/kernel/trace/trace_functions_graph.c
index 28f2602435d0..88ca787a1cdc 100644
--- a/kernel/trace/trace_functions_graph.c
+++ b/kernel/trace/trace_functions_graph.c
@@ -118,7 +118,7 @@ print_graph_duration(struct trace_array *tr, unsigned long long duration,
struct trace_seq *s, u32 flags);
/* Add a function return address to the trace stack on thread info.*/
-int
+static int
ftrace_push_return_trace(unsigned long ret, unsigned long func, int *depth,
unsigned long frame_pointer, unsigned long *retp)
{