Skip to content

Commit 1e2ed4b

Browse files
bjdooks-ctrostedt
authored andcommitted
trace: ftrace_dump_on_oops[] is not exported, make it static
The ftrace_dump_on_oops string is not used outside of trace.c so make it static to avoid the export warning from sparse: kernel/trace/trace.c:141:6: warning: symbol 'ftrace_dump_on_oops' was not declared. Should it be static? Fixes: dd293df ("tracing: Move trace sysctls into trace.c") Link: https://patch.msgid.link/[email protected] Signed-off-by: Ben Dooks <[email protected]> Signed-off-by: Steven Rostedt (Google) <[email protected]>
1 parent 5f1ef0d commit 1e2ed4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ cpumask_var_t __read_mostly tracing_buffer_mask;
138138
* by commas.
139139
*/
140140
/* Set to string format zero to disable by default */
141-
char ftrace_dump_on_oops[MAX_TRACER_SIZE] = "0";
141+
static char ftrace_dump_on_oops[MAX_TRACER_SIZE] = "0";
142142

143143
/* When set, tracing will stop when a WARN*() is hit */
144144
static int __disable_trace_on_warning;

0 commit comments

Comments
 (0)