Skip to content

Commit 31c6839

Browse files
committed
tracing/synthetic: Make lastcmd_mutex static
The lastcmd_mutex is only used in trace_events_synth.c and should be static. Link: https://lore.kernel.org/linux-trace-kernel/202304062033.cRStgOuP-lkp@intel.com/ Link: https://lore.kernel.org/linux-trace-kernel/20230406111033.6e26de93@gandalf.local.home Cc: Masami Hiramatsu <mhiramat@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Tze-nan Wu <Tze-nan.Wu@mediatek.com> Fixes: 4ccf11c ("tracing/synthetic: Fix races on freeing last_cmd") Reviewed-by: Mukesh Ojha <quic_mojha@quicinc.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
1 parent 2a2d8c5 commit 31c6839

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kernel/trace/trace_events_synth.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ enum { ERRORS };
4444

4545
static const char *err_text[] = { ERRORS };
4646

47-
DEFINE_MUTEX(lastcmd_mutex);
47+
static DEFINE_MUTEX(lastcmd_mutex);
4848
static char *last_cmd;
4949

5050
static int errpos(const char *str)

0 commit comments

Comments
 (0)