From: Arnaldo Carvalho de Melo Date: Tue, 22 Jan 2019 13:10:59 +0000 (-0200) Subject: perf symbols: Remove include map.h from dso.h X-Git-Tag: v5.4-rc1~1528^2~28^2~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d328e305ea1fe78f569a4ea2cacca7fa5beec06e;p=platform%2Fkernel%2Flinux-rpi.git perf symbols: Remove include map.h from dso.h Disentangling the dependency tree, to reduce build time. Cc: Adrian Hunter Cc: Jiri Olsa Cc: Namhyung Kim Link: https://lkml.kernel.org/n/tip-n2gcrfmh480rm44p7fra13vv@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/ui/browsers/map.c b/tools/perf/ui/browsers/map.c index 5b8b8c6..c70d933 100644 --- a/tools/perf/ui/browsers/map.c +++ b/tools/perf/ui/browsers/map.c @@ -6,6 +6,7 @@ #include #include "../../util/util.h" #include "../../util/debug.h" +#include "../../util/map.h" #include "../../util/symbol.h" #include "../browser.h" #include "../helpline.h" diff --git a/tools/perf/util/dso.h b/tools/perf/util/dso.h index af2eda2..56001b8 100644 --- a/tools/perf/util/dso.h +++ b/tools/perf/util/dso.h @@ -7,12 +7,14 @@ #include #include #include +#include #include "rwsem.h" #include -#include "map.h" #include "namespaces.h" #include "build-id.h" +struct map; + enum dso_binary_type { DSO_BINARY_TYPE__KALLSYMS = 0, DSO_BINARY_TYPE__GUEST_KALLSYMS, diff --git a/tools/perf/util/symbol_fprintf.c b/tools/perf/util/symbol_fprintf.c index ed0205c..50472c7 100644 --- a/tools/perf/util/symbol_fprintf.c +++ b/tools/perf/util/symbol_fprintf.c @@ -3,6 +3,7 @@ #include #include +#include "map.h" #include "symbol.h" size_t symbol__fprintf(struct symbol *sym, FILE *fp)