mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 21:03:32 +00:00
tracing/synthetic: Make lastcmd_mutex static
commit31c6839671
upstream. 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:4ccf11c4e8
("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6714483057
commit
860fd634f5
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@ enum { ERRORS };
|
|||
|
||||
static const char *err_text[] = { ERRORS };
|
||||
|
||||
DEFINE_MUTEX(lastcmd_mutex);
|
||||
static DEFINE_MUTEX(lastcmd_mutex);
|
||||
static char *last_cmd;
|
||||
|
||||
static int errpos(const char *str)
|
||||
|
|
Loading…
Reference in a new issue