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:
nanshuaibo 2026-09-03 19:28:34 +08:00 committed by Arnaldo Carvalho de Melo
parent d552148607
commit 4c32b6d6bd

View File

@ -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)