Skip to contentSkip to conversation

tracing/osnoise: Make osnoise_instances static

PATCH New Daniel Bristot de Oliveira 1 participant 1 message Nov 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tracing/osnoise: Make osnoise_instances static

Make the struct list_head osnoise_instances definition static.

Cc Steven Rostedt <[email protected]>
Cc Daniel Bristot de Oliveira <[email protected]>
Cc Ingo Molnar <[email protected]>
Fixes dae181349f1e ("tracing/osnoise: Support a list of trace_array *tr")
---
 kernel/trace/trace_osnoise.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
kernel/trace/trace_osnoise.c +2 -1
index 3e4a1651e329..7520d43aed55 100644
@@ -55,7 +55,8 @@ struct osnoise_instance {
 	struct list_head	list;
 	struct trace_array	*tr;
 };
-struct list_head osnoise_instances;
+
+static struct list_head osnoise_instances;
 
 static bool osnoise_has_registered_instances(void)
 {
Signature · 1 line
2.31.1