diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-30 10:28:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-08-31 21:24:10 -0400 |
commit | 171f7474b6bb6c7074431f76c28ea87d625c68fd (patch) | |
tree | 6651309ec6e88eb6a1e84e12098e3d0504b0c798 | |
parent | 4a3cec84949d14dc3ef7fb8a51b8949af93cac13 (diff) |
perf hist: Remove needless ui/progress.h from hist.h
We only need a forward declaration, add it and fixup all the files that
need ui_progress definitions but were wrongly getting it from hist.h.
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-84a90o9jdxybffxo9jmouokw@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/builtin-c2c.c | 1 | ||||
-rw-r--r-- | tools/perf/builtin-report.c | 1 | ||||
-rw-r--r-- | tools/perf/util/hist.h | 2 | ||||
-rw-r--r-- | tools/perf/util/session.c | 1 |
4 files changed, 4 insertions, 1 deletions
diff --git a/tools/perf/builtin-c2c.c b/tools/perf/builtin-c2c.c index d1ad694c67a2..0d76b2cb8c0a 100644 --- a/tools/perf/builtin-c2c.c +++ b/tools/perf/builtin-c2c.c | |||
@@ -37,6 +37,7 @@ | |||
37 | #include "mem2node.h" | 37 | #include "mem2node.h" |
38 | #include "symbol.h" | 38 | #include "symbol.h" |
39 | #include "ui/ui.h" | 39 | #include "ui/ui.h" |
40 | #include "ui/progress.h" | ||
40 | #include "../perf.h" | 41 | #include "../perf.h" |
41 | 42 | ||
42 | struct c2c_hists { | 43 | struct c2c_hists { |
diff --git a/tools/perf/builtin-report.c b/tools/perf/builtin-report.c index ba419ee40283..d7a345667945 100644 --- a/tools/perf/builtin-report.c +++ b/tools/perf/builtin-report.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include "util/branch.h" | 47 | #include "util/branch.h" |
48 | #include "util/util.h" | 48 | #include "util/util.h" |
49 | #include "ui/ui.h" | 49 | #include "ui/ui.h" |
50 | #include "ui/progress.h" | ||
50 | 51 | ||
51 | #include <dlfcn.h> | 52 | #include <dlfcn.h> |
52 | #include <errno.h> | 53 | #include <errno.h> |
diff --git a/tools/perf/util/hist.h b/tools/perf/util/hist.h index 7b9267ebebeb..1c0a635e5e32 100644 --- a/tools/perf/util/hist.h +++ b/tools/perf/util/hist.h | |||
@@ -8,7 +8,6 @@ | |||
8 | #include "evsel.h" | 8 | #include "evsel.h" |
9 | #include "header.h" | 9 | #include "header.h" |
10 | #include "color.h" | 10 | #include "color.h" |
11 | #include "ui/progress.h" | ||
12 | 11 | ||
13 | struct hist_entry; | 12 | struct hist_entry; |
14 | struct hist_entry_ops; | 13 | struct hist_entry_ops; |
@@ -18,6 +17,7 @@ struct mem_info; | |||
18 | struct branch_info; | 17 | struct branch_info; |
19 | struct block_info; | 18 | struct block_info; |
20 | struct symbol; | 19 | struct symbol; |
20 | struct ui_progress; | ||
21 | 21 | ||
22 | enum hist_filter { | 22 | enum hist_filter { |
23 | HIST_FILTER__DSO, | 23 | HIST_FILTER__DSO, |
diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index a72774e4463f..f166da76acf1 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c | |||
@@ -30,6 +30,7 @@ | |||
30 | #include "sample-raw.h" | 30 | #include "sample-raw.h" |
31 | #include "stat.h" | 31 | #include "stat.h" |
32 | #include "util.h" | 32 | #include "util.h" |
33 | #include "ui/progress.h" | ||
33 | #include "../perf.h" | 34 | #include "../perf.h" |
34 | #include "arch/common.h" | 35 | #include "arch/common.h" |
35 | 36 | ||