From: Arnaldo Carvalho de Melo Date: Wed, 21 Aug 2019 17:09:54 +0000 (-0300) Subject: perf evsel: Add missing perf/evsel.h header in util/evsel.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=69714a4e3959eb051e685c6dce06c6d5a8f27c3c;p=linux.git perf evsel: Add missing perf/evsel.h header in util/evsel.h Since util/evsel.h uses perf_evsel__cpus() that has its prototype in libperf's perf/evsel.h file, we need it explicitely included. This was working by luck as util/evsel.h includes counts.h, but that is not necessary, just some forward declarations, so, before we remove counts.h from util/evsel.h, add what is realli needed. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-nfb9e0t4jm9zhvr0q86hc29d@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h index 2928eee784273..da91d6f57f442 100644 --- a/tools/perf/util/evsel.h +++ b/tools/perf/util/evsel.h @@ -8,6 +8,7 @@ #include #include #include +#include #include "symbol_conf.h" #include "cpumap.h" #include "counts.h"