]> git.baikalelectronics.ru Git - kernel.git/commit
perf jevents: Add __maybe_unused attribute to unused function arg
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Sep 2021 17:15:01 +0000 (14:15 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 28 Sep 2021 17:15:01 +0000 (14:15 -0300)
commit04980d8b9e62cb5f8566460ac1d45a86c4839c2c
tree06c3062d47477afddab34f7d2b2452def1e336eb
parent63c33b358cb378421f2faf4faa70df8819226559
perf jevents: Add __maybe_unused attribute to unused function arg

The tools/perf/pmu-events/jevents.c file isn't being compiled with
-Werror and -Wextra, which will be the case soon, so before we turn
those compiler flags on, fix what it would flag.

Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Like Xu <like.xu.linux@gmail.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
To: John Garry <john.garry@huawei.com>
tools/perf/pmu-events/jevents.c