]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Jan 2026 15:35:29 +0000 (16:35 +0100)
[ Upstream commit 1e2ed4bfd50ace3c4272cfab7e9aa90956fb7ae0 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
kernel/trace/trace.c

index ddff2af3cd3f7d222aa5c132c8c7745e1929be1e..142e3b737f0bcf6c3d4858e84bcecc3ba8e0bfbf 100644 (file)
@@ -141,7 +141,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;