Skip to contentSkip to conversation

perf pmu: Remove needless evsel.h include, only needs one fwd decl

tip:perf/core tip-bot for Arnaldo Carvalho de Melo 1 participant 1 message Feb 9, 2019 perf events

lore
Share & tools
lore
#0 lore raw
Commit-ID:  eb563d6604b0f21396e21ac73619c9a5e8ec5aee
Gitweb:     https://git.kernel.org/tip/eb563d6604b0f21396e21ac73619c9a5e8ec5aee
Author:     Arnaldo Carvalho de Melo <[email protected]>
AuthorDate: Tue, 29 Jan 2019 12:24:52 +0100
Committer:  Arnaldo Carvalho de Melo <[email protected]>
CommitDate: Wed, 6 Feb 2019 10:00:38 -0300

perf pmu: Remove needless evsel.h include, only needs one fwd decl

To reduce the header dependency tree.

---
 tools/perf/util/pmu.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
tools/perf/util/pmu.h +2 -1
index 76fecec7b3f9..ffed23fb920a 100644
@@ -6,9 +6,10 @@
 #include <linux/compiler.h>
 #include <linux/perf_event.h>
 #include <stdbool.h>
-#include "evsel.h"
 #include "parse-events.h"
 
+struct perf_evsel_config_term;
+
 enum {
 	PERF_PMU_FORMAT_VALUE_CONFIG,
 	PERF_PMU_FORMAT_VALUE_CONFIG1,