File perf-tools-remove-debug-h-from-header-files-not-needing-it.patch of Package perf

From: Arnaldo Carvalho de Melo <acme@redhat.com>
Date: Thu, 29 Aug 2019 15:56:40 -0300
Subject: perf tools: Remove debug.h from header files not needing it
Git-commit: b42090256fba05dce1a0482a4ccd9bb6464cc499
 (partial)
Patch-mainline: v5.4-rc1
References: jsc#SLE-13661
Patch-filtered: tools/perf/util/metricgroup.c
X-Info: filtered patch

And fix the fallout, adding it to places that must have it since they
use its definitions.

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-1s3jel4i26chq2g0lydoz7i3@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Tony Jones <tonyj@suse.de>
---

 tools/perf/util/metricgroup.c |    2 ++
 1 file changed, 2 insertions(+)

--- a/tools/perf/util/metricgroup.c
+++ b/tools/perf/util/metricgroup.c
@@ -6,6 +6,7 @@
 /* Manage metrics and groups of metrics from JSON files */
 
 #include "metricgroup.h"
+#include "debug.h"
 #include "evlist.h"
 #include "evsel.h"
 #include "strbuf.h"
@@ -18,6 +19,7 @@
 #include "strlist.h"
 #include <assert.h>
 #include <linux/ctype.h>
+#include <linux/string.h>
 #include <linux/zalloc.h>
 #include <subcmd/parse-options.h>
 


openSUSE Build Service is sponsored by