summaryrefslogtreecommitdiffstats
path: root/tools/perf/util/evsel.h
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2019-08-21 19:44:25 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2019-08-22 22:16:57 +0200
commit43cc5d5ecbd194a730f3045547afc1fa8e694389 (patch)
tree964c2a45e518315e6cea1237ef9391420405da00 /tools/perf/util/evsel.h
parentperf evsel: Remove needless stddef.h from util/evsel.h (diff)
downloadlinux-43cc5d5ecbd194a730f3045547afc1fa8e694389.tar.xz
linux-43cc5d5ecbd194a730f3045547afc1fa8e694389.zip
perf evsel: util/evsel.h needs stdio.h as it uses FILE
And it was getting it by luck from util/cpumap.h that shouldn't be included in util/evsel.h as it only needs what is in libperf, i.e. struct cpu_map, that is in internal/cpumap.h, so add stdio.h before we fix that. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lkml.kernel.org/n/tip-2ywx5sl031tj3zske7c7edgv@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/evsel.h')
-rw-r--r--tools/perf/util/evsel.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/evsel.h b/tools/perf/util/evsel.h
index 1f749a783d8f..cd336cf2eaa9 100644
--- a/tools/perf/util/evsel.h
+++ b/tools/perf/util/evsel.h
@@ -4,6 +4,7 @@
#include <linux/list.h>
#include <stdbool.h>
+#include <stdio.h>
#include <linux/perf_event.h>
#include <linux/types.h>
#include <internal/evsel.h>