perf parse-events: Fix an incompatible pointer 02/313102/1 accepted/tizen/unified/20240619.152004 accepted/tizen/unified/dev/20240701.073036
authorIan Rogers <irogers@google.com>
Tue, 9 Jun 2020 05:36:09 +0000 (22:36 -0700)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 19 Jun 2024 05:09:40 +0000 (14:09 +0900)
commit1cca2902c10ba6411e18e4216360e5c9a6d0f72a
tree936bce63dd3fae01e6fd55010b278f95d2efd730
parentbfa24e0b634a28de50e681a73098bf2b84e4932f
perf parse-events: Fix an incompatible pointer

Arrays are pointer types and don't need their address taking.

Fixes: 8255718f4bed (perf pmu: Expand PMU events by prefix match)
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200609053610.206588-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: backport mainline commint c2412fae3f01 to resolve gcc-14 build issue
 - Add to fix access of sys_name and cast for parse_events_get_extra]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: Ibbac7790364c500e42e47f9a4562154884bda65f
tools/perf/util/parse-events.l
tools/perf/util/parse-events.y