diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-19 19:46:41 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2017-04-24 12:43:33 -0400 |
commit | a3b70b3bb34296a63b43614f13991111eccbb44a (patch) | |
tree | 2d01e0049090925158c0d73124caa8d98cb7ac2e /tools | |
parent | 72f7c4d22ccf7c7e78aa80ea3285e77404b31913 (diff) |
perf tools: Remove stale prototypes from builtin.h
Some, like prune_packed_objects() are clearly git specific, others
don't have implementations and some are used in just one place, make
them static.
Link: http://lkml.kernel.org/n/tip-faj3c5dnttf3hurv4pujut8n@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/builtin.h | 4 | ||||
-rw-r--r-- | tools/perf/perf.c | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/tools/perf/builtin.h b/tools/perf/builtin.h index 26669bf9129c..d4d19fe3d050 100644 --- a/tools/perf/builtin.h +++ b/tools/perf/builtin.h | |||
@@ -2,16 +2,12 @@ | |||
2 | #define BUILTIN_H | 2 | #define BUILTIN_H |
3 | 3 | ||
4 | #include "util/util.h" | 4 | #include "util/util.h" |
5 | #include "util/strbuf.h" | ||
6 | 5 | ||
7 | extern const char perf_usage_string[]; | 6 | extern const char perf_usage_string[]; |
8 | extern const char perf_more_info_string[]; | 7 | extern const char perf_more_info_string[]; |
9 | 8 | ||
10 | void list_common_cmds_help(void); | 9 | void list_common_cmds_help(void); |
11 | const char *help_unknown_cmd(const char *cmd); | 10 | const char *help_unknown_cmd(const char *cmd); |
12 | void prune_packed_objects(int); | ||
13 | int read_line_with_nul(char *buf, int size, FILE *file); | ||
14 | int check_pager_config(const char *cmd); | ||
15 | 11 | ||
16 | int cmd_annotate(int argc, const char **argv); | 12 | int cmd_annotate(int argc, const char **argv); |
17 | int cmd_bench(int argc, const char **argv); | 13 | int cmd_bench(int argc, const char **argv); |
diff --git a/tools/perf/perf.c b/tools/perf/perf.c index 356588982d08..0b2cad0fb3f9 100644 --- a/tools/perf/perf.c +++ b/tools/perf/perf.c | |||
@@ -91,7 +91,7 @@ static int pager_command_config(const char *var, const char *value, void *data) | |||
91 | } | 91 | } |
92 | 92 | ||
93 | /* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */ | 93 | /* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */ |
94 | int check_pager_config(const char *cmd) | 94 | static int check_pager_config(const char *cmd) |
95 | { | 95 | { |
96 | int err; | 96 | int err; |
97 | struct pager_config c; | 97 | struct pager_config c; |