Re: [PATCH 03/11] perf, tools: Add support for parsing uncore json files

From: Arnaldo Carvalho de Melo
Date: Thu Jan 12 2017 - 08:32:51 EST


Em Sun, Jan 08, 2017 at 07:58:00PM +0100, Jiri Olsa escreveu:
> On Tue, Jan 03, 2017 at 07:08:25AM -0800, Andi Kleen wrote:
>
> SNIP
>
> > /*
> > diff --git a/tools/perf/util/pmu.c b/tools/perf/util/pmu.c
> > index 29c254dd7380..8bffe99d8e3f 100644
> > --- a/tools/perf/util/pmu.c
> > +++ b/tools/perf/util/pmu.c
> > @@ -229,11 +229,13 @@ static int perf_pmu__parse_snapshot(struct perf_pmu_alias *alias,
> > }
> >
> > static int __perf_pmu__new_alias(struct list_head *list, char *dir, char *name,
> > - char *desc, char *val, char *long_desc,
> > - char *topic)
> > + char *desc __maybe_unused, char *val,
>
> no need for 'desc' to be __maybe_unused

I'll check and remove it...

- Arnaldo