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/202111120052.ZuikQSJi-lkp@intel.com/ Link: https://lkml.kernel.org/r/d001f0eeac66e2b2eeec7d2a15e9e7abede0453a.1636667971.git.bristot@kernel.org Cc: Ingo Molnar <mingo@redhat.com> Fixes: dae1813 ("tracing/osnoise: Support a list of trace_array *tr") Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Daniel Bristot de Oliveira <bristot@kernel.org> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
1 parent 2e6e905 commit d7458bc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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)