libperf: Add missing 'struct perf_cpu_map' forward declaration to perf/cpumap.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Nov 2022 18:43:34 +0000 (15:43 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Nov 2022 19:00:49 +0000 (16:00 -0300)
The perf/cpumap.h header is getting the 'struct perf_cpu_map' forward
declaration by luck, add it.

Acked-by: Ian Rogers <irogers@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/lib/perf/include/perf/cpumap.h

index 98e463e..3f43f77 100644 (file)
@@ -11,6 +11,8 @@ struct perf_cpu {
        int cpu;
 };
 
+struct perf_cpu_map;
+
 LIBPERF_API struct perf_cpu_map *perf_cpu_map__dummy_new(void);
 LIBPERF_API struct perf_cpu_map *perf_cpu_map__default_new(void);
 LIBPERF_API struct perf_cpu_map *perf_cpu_map__new(const char *cpu_list);