diff options
| author | Namhyung Kim <namhyung@gmail.com> | 2012-01-29 03:55:55 -0500 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2012-01-30 15:37:35 -0500 |
| commit | d30d4a080d195892091ad7d014fc9293cc08ea0f (patch) | |
| tree | 8232dce349df5cb85c6571ea42f1cf6709b878d1 /tools/perf | |
| parent | d1eec3ecaef083affaf3210246b01b6e80d3a44e (diff) | |
perf tools: Remove unnecessary ctype.h inclusion
There are unnecessary #include <ctype.h> out there, and they might cause
a nasty build failure in some environment. As we already have most of
ctype macros in util.h, just get rid of them.
A few of exceptions are util/symbol.c which needs isupper() macro util.h
doesn't provide and perl scripting support code which includes ctype.h
internally.
Suggested-by: Ingo Molnar <mingo@elte.hu>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1327827356-8786-4-git-send-email-namhyung@gmail.com
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
| -rw-r--r-- | tools/perf/bench/mem-memcpy.c | 1 | ||||
| -rw-r--r-- | tools/perf/bench/mem-memset.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/probe-finder.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/scripting-engines/trace-event-python.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/trace-event-parse.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/trace-event-read.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/trace-event-scripting.c | 1 | ||||
| -rw-r--r-- | tools/perf/util/ui/browsers/map.c | 2 |
8 files changed, 1 insertions, 8 deletions
diff --git a/tools/perf/bench/mem-memcpy.c b/tools/perf/bench/mem-memcpy.c index 6ad2b1c6b27b..71557225bf92 100644 --- a/tools/perf/bench/mem-memcpy.c +++ b/tools/perf/bench/mem-memcpy.c | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | * | 5 | * |
| 6 | * Written by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> | 6 | * Written by Hitoshi Mitake <mitake@dcl.info.waseda.ac.jp> |
| 7 | */ | 7 | */ |
| 8 | #include <ctype.h> | ||
| 9 | 8 | ||
| 10 | #include "../perf.h" | 9 | #include "../perf.h" |
| 11 | #include "../util/util.h" | 10 | #include "../util/util.h" |
diff --git a/tools/perf/bench/mem-memset.c b/tools/perf/bench/mem-memset.c index 59d4933eff44..e9079185bd72 100644 --- a/tools/perf/bench/mem-memset.c +++ b/tools/perf/bench/mem-memset.c | |||
| @@ -5,7 +5,6 @@ | |||
| 5 | * | 5 | * |
| 6 | * Trivial clone of mem-memcpy.c. | 6 | * Trivial clone of mem-memcpy.c. |
| 7 | */ | 7 | */ |
| 8 | #include <ctype.h> | ||
| 9 | 8 | ||
| 10 | #include "../perf.h" | 9 | #include "../perf.h" |
| 11 | #include "../util/util.h" | 10 | #include "../util/util.h" |
diff --git a/tools/perf/util/probe-finder.c b/tools/perf/util/probe-finder.c index 5d732621a462..67dc4aed721c 100644 --- a/tools/perf/util/probe-finder.c +++ b/tools/perf/util/probe-finder.c | |||
| @@ -30,7 +30,6 @@ | |||
| 30 | #include <stdlib.h> | 30 | #include <stdlib.h> |
| 31 | #include <string.h> | 31 | #include <string.h> |
| 32 | #include <stdarg.h> | 32 | #include <stdarg.h> |
| 33 | #include <ctype.h> | ||
| 34 | #include <dwarf-regs.h> | 33 | #include <dwarf-regs.h> |
| 35 | 34 | ||
| 36 | #include <linux/bitops.h> | 35 | #include <linux/bitops.h> |
diff --git a/tools/perf/util/scripting-engines/trace-event-python.c b/tools/perf/util/scripting-engines/trace-event-python.c index 0b2a48783172..c2623c6f9b51 100644 --- a/tools/perf/util/scripting-engines/trace-event-python.c +++ b/tools/perf/util/scripting-engines/trace-event-python.c | |||
| @@ -24,7 +24,6 @@ | |||
| 24 | #include <stdio.h> | 24 | #include <stdio.h> |
| 25 | #include <stdlib.h> | 25 | #include <stdlib.h> |
| 26 | #include <string.h> | 26 | #include <string.h> |
| 27 | #include <ctype.h> | ||
| 28 | #include <errno.h> | 27 | #include <errno.h> |
| 29 | 28 | ||
| 30 | #include "../../perf.h" | 29 | #include "../../perf.h" |
diff --git a/tools/perf/util/trace-event-parse.c b/tools/perf/util/trace-event-parse.c index 1a8d4dc4f386..e0a4f652f289 100644 --- a/tools/perf/util/trace-event-parse.c +++ b/tools/perf/util/trace-event-parse.c | |||
| @@ -25,7 +25,6 @@ | |||
| 25 | #include <stdio.h> | 25 | #include <stdio.h> |
| 26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
| 27 | #include <string.h> | 27 | #include <string.h> |
| 28 | #include <ctype.h> | ||
| 29 | #include <errno.h> | 28 | #include <errno.h> |
| 30 | 29 | ||
| 31 | #include "../perf.h" | 30 | #include "../perf.h" |
diff --git a/tools/perf/util/trace-event-read.c b/tools/perf/util/trace-event-read.c index f55cc3a765a1..b9592e0de8d7 100644 --- a/tools/perf/util/trace-event-read.c +++ b/tools/perf/util/trace-event-read.c | |||
| @@ -33,7 +33,6 @@ | |||
| 33 | #include <pthread.h> | 33 | #include <pthread.h> |
| 34 | #include <fcntl.h> | 34 | #include <fcntl.h> |
| 35 | #include <unistd.h> | 35 | #include <unistd.h> |
| 36 | #include <ctype.h> | ||
| 37 | #include <errno.h> | 36 | #include <errno.h> |
| 38 | 37 | ||
| 39 | #include "../perf.h" | 38 | #include "../perf.h" |
diff --git a/tools/perf/util/trace-event-scripting.c b/tools/perf/util/trace-event-scripting.c index a3fdf55f317b..18ae6c1831d3 100644 --- a/tools/perf/util/trace-event-scripting.c +++ b/tools/perf/util/trace-event-scripting.c | |||
| @@ -22,7 +22,6 @@ | |||
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 24 | #include <string.h> | 24 | #include <string.h> |
| 25 | #include <ctype.h> | ||
| 26 | #include <errno.h> | 25 | #include <errno.h> |
| 27 | 26 | ||
| 28 | #include "../perf.h" | 27 | #include "../perf.h" |
diff --git a/tools/perf/util/ui/browsers/map.c b/tools/perf/util/ui/browsers/map.c index 6905bcc8be2d..eca6575abfd0 100644 --- a/tools/perf/util/ui/browsers/map.c +++ b/tools/perf/util/ui/browsers/map.c | |||
| @@ -3,9 +3,9 @@ | |||
| 3 | #include <newt.h> | 3 | #include <newt.h> |
| 4 | #include <inttypes.h> | 4 | #include <inttypes.h> |
| 5 | #include <sys/ttydefaults.h> | 5 | #include <sys/ttydefaults.h> |
| 6 | #include <ctype.h> | ||
| 7 | #include <string.h> | 6 | #include <string.h> |
| 8 | #include <linux/bitops.h> | 7 | #include <linux/bitops.h> |
| 8 | #include "../../util.h" | ||
| 9 | #include "../../debug.h" | 9 | #include "../../debug.h" |
| 10 | #include "../../symbol.h" | 10 | #include "../../symbol.h" |
| 11 | #include "../browser.h" | 11 | #include "../browser.h" |
