Skip to content

Commit 0c4d8cb

Browse files
committed
function_graph: Make fgraph_do_direct static key static
The static branch key "fgraph_do_direct" was not declared static but is only used in one file. Change it to a static variable. Link: https://lore.kernel.org/linux-trace-kernel/20240605202708.936515302@goodmis.org Cc: Mark Rutland <mark.rutland@arm.com> Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com> Cc: Andrew Morton <akpm@linux-foundation.org> Fixes: cc60ee8 ("function_graph: Use static_call and branch to optimize entry function") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202406051711.dS1sQZ9n-lkp@intel.com/ Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 86b4997 commit 0c4d8cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/fgraph.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ static struct fgraph_ops fgraph_stub = {
515515
static struct fgraph_ops *fgraph_direct_gops = &fgraph_stub;
516516
DEFINE_STATIC_CALL(fgraph_func, ftrace_graph_entry_stub);
517517
DEFINE_STATIC_CALL(fgraph_retfunc, ftrace_graph_ret_stub);
518-
DEFINE_STATIC_KEY_TRUE(fgraph_do_direct);
518+
static DEFINE_STATIC_KEY_TRUE(fgraph_do_direct);
519519

520520
/**
521521
* ftrace_graph_stop - set to permanently disable function graph tracing

0 commit comments

Comments
 (0)