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

From: Jiri Olsa
Date: Sun Jan 08 2017 - 13:58:31 EST


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

jirka