Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+4 -2
+1
tools/perf/ui/browsers/scripts.c
··· 2 2 #include "../../builtin.h" 3 3 #include "../../perf.h" 4 4 #include "../../util/util.h" 5 + #include "../util.h" 5 6 #include "../../util/hist.h" 6 7 #include "../../util/debug.h" 7 8 #include "../../util/symbol.h"
+2 -1
tools/perf/ui/gtk/setup.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 #include "gtk.h" 3 - #include "../../util/debug.h" 3 + #include <linux/compiler.h> 4 + #include "../util.h" 4 5 5 6 extern struct perf_error_ops perf_gtk_eops; 6 7
+1 -1
tools/perf/util/debug.h
··· 3 3 #ifndef __PERF_DEBUG_H 4 4 #define __PERF_DEBUG_H 5 5 6 + #include <stdarg.h> 6 7 #include <stdbool.h> 7 8 #include <linux/compiler.h> 8 - #include "../ui/util.h" 9 9 10 10 extern int verbose; 11 11 extern bool quiet, dump_trace;