File perf-tools-remove-needless-evlist-h-include-directives-partial.patch of Package perf.23962
From: Arnaldo Carvalho de Melo <acme@redhat.com> Date: Fri, 30 Aug 2019 12:29:03 -0300 Subject: perf tools: Remove needless evlist.h include directives Git-commit: 7ae811b12e419fd70b7d7159f20ed8519bbe18cc (partial) Patch-mainline: v5.4-rc1 References: SLE-14769 Patch-filtered: tools/perf/util/arm-spe.c Now that evlist.h isn't included by any other header, we can check where it is really needed, i.e. we can remove it and be sure that it isn't being obtained indirectly. 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-6d7kape36m94a266md0d3xbh@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Tony Jones <tonyj@suse.de> --- tools/perf/util/arm-spe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/tools/perf/util/arm-spe.c +++ b/tools/perf/util/arm-spe.c @@ -8,6 +8,8 @@ #include <errno.h> #include <byteswap.h> #include <inttypes.h> +#include <unistd.h> +#include <stdlib.h> #include <linux/kernel.h> #include <linux/types.h> #include <linux/bitops.h> @@ -17,7 +19,6 @@ #include "cpumap.h" #include "color.h" #include "evsel.h" -#include "evlist.h" #include "machine.h" #include "session.h" #include "debug.h"