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/[email protected] Cc: Mark Rutland <[email protected]> Cc: Mathieu Desnoyers <[email protected]> Cc: Andrew Morton <[email protected]> Fixes: cc60ee8 ("function_graph: Use static_call and branch to optimize entry function") Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Acked-by: Masami Hiramatsu (Google) <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 86b4997 commit 0c4d8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)