diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-22 08:28:42 -0500 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2019-01-25 09:12:09 -0500 |
commit | f0049f2c3ee80d0808efe6fb4400b572e6858cb9 (patch) | |
tree | 0344b1346002009c93a7956cac01767baf00b91d | |
parent | 40f3b2d20b52b090976a60fe56fb838a45eb362f (diff) |
perf comm: Remove needless headers from comm.h
There we don't need rbtree, only in comm.c, also ditch perf.h, not
needed at all.
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-vr1jnwwujh99skrgldtimpmu@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
-rw-r--r-- | tools/perf/util/comm.c | 1 | ||||
-rw-r--r-- | tools/perf/util/comm.h | 4 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/perf/util/comm.c b/tools/perf/util/comm.c index 31279a7bd919..1066de92af12 100644 --- a/tools/perf/util/comm.c +++ b/tools/perf/util/comm.c | |||
@@ -6,6 +6,7 @@ | |||
6 | #include <stdio.h> | 6 | #include <stdio.h> |
7 | #include <string.h> | 7 | #include <string.h> |
8 | #include <linux/refcount.h> | 8 | #include <linux/refcount.h> |
9 | #include <linux/rbtree.h> | ||
9 | #include "rwsem.h" | 10 | #include "rwsem.h" |
10 | 11 | ||
11 | struct comm_str { | 12 | struct comm_str { |
diff --git a/tools/perf/util/comm.h b/tools/perf/util/comm.h index 3e5c438fe85e..f35d8fbfa2dd 100644 --- a/tools/perf/util/comm.h +++ b/tools/perf/util/comm.h | |||
@@ -2,9 +2,9 @@ | |||
2 | #ifndef __PERF_COMM_H | 2 | #ifndef __PERF_COMM_H |
3 | #define __PERF_COMM_H | 3 | #define __PERF_COMM_H |
4 | 4 | ||
5 | #include "../perf.h" | ||
6 | #include <linux/rbtree.h> | ||
7 | #include <linux/list.h> | 5 | #include <linux/list.h> |
6 | #include <linux/types.h> | ||
7 | #include <stdbool.h> | ||
8 | 8 | ||
9 | struct comm_str; | 9 | struct comm_str; |
10 | 10 | ||