mirror of
https://github.com/torvalds/linux.git
synced 2026-11-10 17:11:02 +01:00
perf sched: Make output_name variable static
The output_name variable is only used within builtin-sched.c for the stats subcommand, so declare it static. This fixes a sparse warning: builtin-sched.c:4140:12: warning: symbol 'output_name' was not declared. Should it be static? Reviewed-by: Ian Rogers <irogers@google.com> Signed-off-by: nanshuaibo <nanshuaibo811@163.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
d552148607
commit
4c32b6d6bd
|
|
@ -4137,7 +4137,7 @@ static int disable_sched_schedstat(void)
|
|||
}
|
||||
|
||||
/* perf.data or any other output file name used by stats subcommand (only). */
|
||||
const char *output_name;
|
||||
static const char *output_name;
|
||||
|
||||
static int perf_sched__schedstat_record(struct perf_sched *sched,
|
||||
int argc, const char **argv)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user