From: Arnaldo Carvalho de Melo Date: Wed, 16 Nov 2022 18:43:34 +0000 (-0300) Subject: libperf: Add missing 'struct perf_cpu_map' forward declaration to perf/cpumap.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=63a3bf5e8d9e79ce456c8f73d4395a5a51d841b1;p=linux.git libperf: Add missing 'struct perf_cpu_map' forward declaration to perf/cpumap.h The perf/cpumap.h header is getting the 'struct perf_cpu_map' forward declaration by luck, add it. Acked-by: Ian Rogers Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/lib/perf/include/perf/cpumap.h b/tools/lib/perf/include/perf/cpumap.h index 98e463ec15a7f..3f43f770cdac5 100644 --- a/tools/lib/perf/include/perf/cpumap.h +++ b/tools/lib/perf/include/perf/cpumap.h @@ -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);