Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf scripting python: Remove unnecessary 'static'

The variables are always assigned before use, making the 'static'
storage class unnecessary.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Arnaldo Carvalho de Melo <acme@kernel.org>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/r/20210530192308.7382-2-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Adrian Hunter and committed by
Arnaldo Carvalho de Melo
4c62244e 6ea68838

+3 -3
+3 -3
tools/perf/scripts/python/Perf-Trace-Util/Context.c
··· 22 22 23 23 static PyObject *perf_trace_context_common_pc(PyObject *obj, PyObject *args) 24 24 { 25 - static struct scripting_context *scripting_context; 25 + struct scripting_context *scripting_context; 26 26 PyObject *context; 27 27 int retval; 28 28 ··· 38 38 static PyObject *perf_trace_context_common_flags(PyObject *obj, 39 39 PyObject *args) 40 40 { 41 - static struct scripting_context *scripting_context; 41 + struct scripting_context *scripting_context; 42 42 PyObject *context; 43 43 int retval; 44 44 ··· 54 54 static PyObject *perf_trace_context_common_lock_depth(PyObject *obj, 55 55 PyObject *args) 56 56 { 57 - static struct scripting_context *scripting_context; 57 + struct scripting_context *scripting_context; 58 58 PyObject *context; 59 59 int retval; 60 60