perf debug: No need to include ui/util.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 3 Sep 2019 12:57:50 +0000 (09:57 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 20 Sep 2019 12:19:20 +0000 (09:19 -0300)
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>
tools/perf/ui/browsers/scripts.c
tools/perf/ui/gtk/setup.c
tools/perf/util/debug.h

index 586a21acc13d608ed8055877fab235fd71b9d0cc..3b81075b8da867fc1c3be6cef00b21715496880e 100644 (file)
@@ -2,6 +2,7 @@
 #include "../../builtin.h"
 #include "../../perf.h"
 #include "../../util/util.h"
+#include "../util.h"
 #include "../../util/hist.h"
 #include "../../util/debug.h"
 #include "../../util/symbol.h"
index 1a2616b97b5c228c0ee988c03e27d577bdcba5ff..f5eee4d6687383036ce36dd3ceead44171254d92 100644 (file)
@@ -1,6 +1,7 @@
 // SPDX-License-Identifier: GPL-2.0
 #include "gtk.h"
-#include "../../util/debug.h"
+#include <linux/compiler.h>
+#include "../util.h"
 
 extern struct perf_error_ops perf_gtk_eops;
 
index b2deee987ffadf1e0bdfc3e6966678b89c095240..d25ae1c4cee9ae82738ada6a8e929d8fdcffcbd1 100644 (file)
@@ -3,9 +3,9 @@
 #ifndef __PERF_DEBUG_H
 #define __PERF_DEBUG_H
 
+#include <stdarg.h>
 #include <stdbool.h>
 #include <linux/compiler.h>
-#include "../ui/util.h"
 
 extern int verbose;
 extern bool quiet, dump_trace;