]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tracing: Make tracepoint_printk static as not exported
authorBen Dooks <ben.dooks@codethink.co.uk>
Wed, 17 Jun 2026 10:58:22 +0000 (11:58 +0100)
committerSteven Rostedt <rostedt@goodmis.org>
Tue, 7 Jul 2026 14:39:12 +0000 (10:39 -0400)
The tracepoint_printk symbol is not exported, so make it
static to remove the following sparse warning:

kernel/trace/trace.c:90:5: warning: symbol 'tracepoint_printk' was not declared. Should it be static?

Fixes: dd293df6395a2 ("tracing: Move trace sysctls into trace.c")
Link: https://patch.msgid.link/20260617105822.904164-1-ben.dooks@codethink.co.uk
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c

index 299f5ab630b938ce8fda21546cbcdbf1464785cf..18710c190c924f3d9528c424b4fdb1a5cf6dbc5a 100644 (file)
@@ -87,7 +87,7 @@ void __init disable_tracing_selftest(const char *reason)
 
 /* Pipe tracepoints to printk */
 static struct trace_iterator *tracepoint_print_iter;
-int tracepoint_printk;
+static int tracepoint_printk;
 static bool tracepoint_printk_stop_on_boot __initdata;
 static bool traceoff_after_boot __initdata;
 static DEFINE_STATIC_KEY_FALSE(tracepoint_printk_key);