diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-03 08:57:50 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-09-20 08:19:20 -0400 |
commit | b22bb139dcb370cd3a7f3c5ae29d55bb69235ace (patch) | |
tree | 9a3e5aa613eb397d6bef52f5121f0913a026e011 | |
parent | 8fcbeae44fde9756036147664d1e74fab7c9902c (diff) |
perf debug: No need to include ui/util.h
Nothing from that file is used in util/debug.h, it is only needed in
some places that get it indirectly via including util/debug.h, remove
that entanglement.
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-hn9v4jdova2nt018fqsjyzun@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/ui/browsers/scripts.c | 1 | ||||
-rw-r--r-- | tools/perf/ui/gtk/setup.c | 3 | ||||
-rw-r--r-- | tools/perf/util/debug.h | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/ui/browsers/scripts.c b/tools/perf/ui/browsers/scripts.c index 586a21acc13d..3b81075b8da8 100644 --- a/tools/perf/ui/browsers/scripts.c +++ b/tools/perf/ui/browsers/scripts.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include "../../builtin.h" | 2 | #include "../../builtin.h" |
3 | #include "../../perf.h" | 3 | #include "../../perf.h" |
4 | #include "../../util/util.h" | 4 | #include "../../util/util.h" |
5 | #include "../util.h" | ||
5 | #include "../../util/hist.h" | 6 | #include "../../util/hist.h" |
6 | #include "../../util/debug.h" | 7 | #include "../../util/debug.h" |
7 | #include "../../util/symbol.h" | 8 | #include "../../util/symbol.h" |
diff --git a/tools/perf/ui/gtk/setup.c b/tools/perf/ui/gtk/setup.c index 1a2616b97b5c..f5eee4d66873 100644 --- a/tools/perf/ui/gtk/setup.c +++ b/tools/perf/ui/gtk/setup.c | |||
@@ -1,6 +1,7 @@ | |||
1 | // SPDX-License-Identifier: GPL-2.0 | 1 | // SPDX-License-Identifier: GPL-2.0 |
2 | #include "gtk.h" | 2 | #include "gtk.h" |
3 | #include "../../util/debug.h" | 3 | #include <linux/compiler.h> |
4 | #include "../util.h" | ||
4 | 5 | ||
5 | extern struct perf_error_ops perf_gtk_eops; | 6 | extern struct perf_error_ops perf_gtk_eops; |
6 | 7 | ||
diff --git a/tools/perf/util/debug.h b/tools/perf/util/debug.h index b2deee987ffa..d25ae1c4cee9 100644 --- a/tools/perf/util/debug.h +++ b/tools/perf/util/debug.h | |||
@@ -3,9 +3,9 @@ | |||
3 | #ifndef __PERF_DEBUG_H | 3 | #ifndef __PERF_DEBUG_H |
4 | #define __PERF_DEBUG_H | 4 | #define __PERF_DEBUG_H |
5 | 5 | ||
6 | #include <stdarg.h> | ||
6 | #include <stdbool.h> | 7 | #include <stdbool.h> |
7 | #include <linux/compiler.h> | 8 | #include <linux/compiler.h> |
8 | #include "../ui/util.h" | ||
9 | 9 | ||
10 | extern int verbose; | 10 | extern int verbose; |
11 | extern bool quiet, dump_trace; | 11 | extern bool quiet, dump_trace; |