Skip to content

Commit d7458bc

Browse files
Daniel Bristot de Oliveirarostedt
authored andcommitted
tracing/osnoise: Make osnoise_instances static
Make the struct list_head osnoise_instances definition static. Link: https://lore.kernel.org/all/[email protected]/ Link: https://lkml.kernel.org/r/d001f0eeac66e2b2eeec7d2a15e9e7abede0453a.1636667971.git.bristot@kernel.org Cc: Ingo Molnar <[email protected]> Fixes: dae1813 ("tracing/osnoise: Support a list of trace_array *tr") Reported-by: kernel test robot <[email protected]> Signed-off-by: Daniel Bristot de Oliveira <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
1 parent 2e6e905 commit d7458bc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

kernel/trace/trace_osnoise.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ struct osnoise_instance {
5555
struct list_head list;
5656
struct trace_array *tr;
5757
};
58-
struct list_head osnoise_instances;
58+
59+
static struct list_head osnoise_instances;
5960

6061
static bool osnoise_has_registered_instances(void)
6162
{

0 commit comments

Comments
 (0)