]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
trace: ftrace_dump_on_oops[] is not exported, make it static
authorBen Dooks <ben.dooks@codethink.co.uk>
Tue, 6 Jan 2026 23:10:54 +0000 (23:10 +0000)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 7 Jan 2026 19:52:22 +0000 (14:52 -0500)
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: dd293df6395a2 ("tracing: Move trace sysctls into trace.c")
Link: https://patch.msgid.link/20260106231054.84270-1-ben.dooks@codethink.co.uk
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c

index aef9058537d5490ba29e15c8f210dea215cacc27..baec63134ab627d2e8c03d23b087746317cf2c42 100644 (file)
@@ -138,7 +138,7 @@ cpumask_var_t __read_mostly tracing_buffer_mask;
  * by commas.
  */
 /* Set to string format zero to disable by default */
-char ftrace_dump_on_oops[MAX_TRACER_SIZE] = "0";
+static char ftrace_dump_on_oops[MAX_TRACER_SIZE] = "0";
 
 /* When set, tracing will stop when a WARN*() is hit */
 static int __disable_trace_on_warning;