Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -5
-4
tools/perf/builtin.h
··· 2 2 #define BUILTIN_H 3 3 4 4 #include "util/util.h" 5 - #include "util/strbuf.h" 6 5 7 6 extern const char perf_usage_string[]; 8 7 extern const char perf_more_info_string[]; 9 8 10 9 void list_common_cmds_help(void); 11 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 12 int cmd_annotate(int argc, const char **argv); 17 13 int cmd_bench(int argc, const char **argv);
+1 -1
tools/perf/perf.c
··· 91 91 } 92 92 93 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 96 int err; 97 97 struct pager_config c;