diff options
| author | Ian Rogers <[email protected]> | 2021-09-15 21:14:28 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2021-09-15 21:21:00 +0000 |
| commit | 8228e9361e2a7447eaed87499123e85871c8bc18 (patch) | |
| tree | add8226113e31cc4c59e0a1d5d8de0e3535c4d12 /tools/perf/util/annotate.c | |
| parent | perf bpf: Ignore deprecation warning when using libbpf's btf__get_from_id() (diff) | |
| download | kernel-8228e9361e2a7447eaed87499123e85871c8bc18.tar.gz kernel-8228e9361e2a7447eaed87499123e85871c8bc18.zip | |
perf parse-events: Avoid enum forward declaration.
Enum forward declarations aren't allowed as the size can't be implied.
Switch to just using an int. This fixes a clang warning:
In file included from tools/perf/bench/evlist-open-close.c:13:
tools/perf/bench/../util/parse-events.h:185:6: error: redeclaration of already-defined enum 'perf_tool_event' is a GNU extension [-Werror,-Wgnu-redeclared-enum]
enum perf_tool_event;
^
tools/perf/bench/../util/evsel.h:28:6: note: previous definition is here
enum perf_tool_event {
^
Signed-off-by: Ian Rogers <[email protected]>
Cc: Alexander Shishkin <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mark Rutland <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions
