diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 18:03:14 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-24 12:43:32 -0400 |
commit | 86a5e0c2028899465a129d87f60fe4018c5ae839 (patch) | |
tree | 79cf0cb222faec135744e4e57794937b5525ac82 /tools/perf | |
parent | bf6733432dd8d92ffd687d6ce014a37923ba8105 (diff) |
perf tools: Remove sys/ioctl.h from util.h
Not needed in this header, added to the places that need 'struct
winsize' and the ioctl defines.
Link: http://lkml.kernel.org/n/tip-2pznlli3146y4242otlcm70m@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r-- | tools/perf/util/evlist.c | 1 | ||||
-rw-r--r-- | tools/perf/util/evsel.c | 1 | ||||
-rw-r--r-- | tools/perf/util/parse-events.c | 1 | ||||
-rw-r--r-- | tools/perf/util/top.h | 2 | ||||
-rw-r--r-- | tools/perf/util/util.h | 1 |
5 files changed, 4 insertions, 2 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 5eb638fd003f..46c0faf6c502 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c | |||
@@ -25,6 +25,7 @@ | |||
25 | #include "parse-events.h" | 25 | #include "parse-events.h" |
26 | #include <subcmd/parse-options.h> | 26 | #include <subcmd/parse-options.h> |
27 | 27 | ||
28 | #include <sys/ioctl.h> | ||
28 | #include <sys/mman.h> | 29 | #include <sys/mman.h> |
29 | 30 | ||
30 | #include <linux/bitops.h> | 31 | #include <linux/bitops.h> |
diff --git a/tools/perf/util/evsel.c b/tools/perf/util/evsel.c index 44a7aef3911b..0e879097adfb 100644 --- a/tools/perf/util/evsel.c +++ b/tools/perf/util/evsel.c | |||
@@ -16,6 +16,7 @@ | |||
16 | #include <linux/hw_breakpoint.h> | 16 | #include <linux/hw_breakpoint.h> |
17 | #include <linux/perf_event.h> | 17 | #include <linux/perf_event.h> |
18 | #include <linux/err.h> | 18 | #include <linux/err.h> |
19 | #include <sys/ioctl.h> | ||
19 | #include <sys/resource.h> | 20 | #include <sys/resource.h> |
20 | #include "asm/bug.h" | 21 | #include "asm/bug.h" |
21 | #include "callchain.h" | 22 | #include "callchain.h" |
diff --git a/tools/perf/util/parse-events.c b/tools/perf/util/parse-events.c index 4f7e42e18f8a..01e779b91c8e 100644 --- a/tools/perf/util/parse-events.c +++ b/tools/perf/util/parse-events.c | |||
@@ -2,6 +2,7 @@ | |||
2 | #include <linux/err.h> | 2 | #include <linux/err.h> |
3 | #include <dirent.h> | 3 | #include <dirent.h> |
4 | #include <errno.h> | 4 | #include <errno.h> |
5 | #include <sys/ioctl.h> | ||
5 | #include <sys/param.h> | 6 | #include <sys/param.h> |
6 | #include "term.h" | 7 | #include "term.h" |
7 | #include "../perf.h" | 8 | #include "../perf.h" |
diff --git a/tools/perf/util/top.h b/tools/perf/util/top.h index b2940c88734a..9bdfb78a9a35 100644 --- a/tools/perf/util/top.h +++ b/tools/perf/util/top.h | |||
@@ -5,7 +5,7 @@ | |||
5 | #include <linux/types.h> | 5 | #include <linux/types.h> |
6 | #include <stddef.h> | 6 | #include <stddef.h> |
7 | #include <stdbool.h> | 7 | #include <stdbool.h> |
8 | #include <termios.h> | 8 | #include <sys/ioctl.h> |
9 | 9 | ||
10 | struct perf_evlist; | 10 | struct perf_evlist; |
11 | struct perf_evsel; | 11 | struct perf_evsel; |
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 0df20a3973da..c014b2fc22b3 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -18,7 +18,6 @@ | |||
18 | #include <string.h> | 18 | #include <string.h> |
19 | #include <sys/wait.h> | 19 | #include <sys/wait.h> |
20 | #include <poll.h> | 20 | #include <poll.h> |
21 | #include <sys/ioctl.h> | ||
22 | #include <linux/types.h> | 21 | #include <linux/types.h> |
23 | 22 | ||
24 | extern char buildid_dir[]; | 23 | extern char buildid_dir[]; |