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

perf buildid: Move prototypes from util.h to build-id.h

Where they belong.

Link: http://lkml.kernel.org/n/tip-94m3dziejxgo7k0488q3mqjm@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

+4 -4
-1
tools/perf/tests/sdt.c
··· 1 1 #include <errno.h> 2 2 #include <stdio.h> 3 3 #include <sys/epoll.h> 4 - #include <util/util.h> 5 4 #include <util/evlist.h> 6 5 #include <linux/filter.h> 7 6 #include "tests.h"
+4
tools/perf/util/build-id.h
··· 44 44 int build_id_cache__add_s(const char *sbuild_id, 45 45 const char *name, bool is_kallsyms, bool is_vdso); 46 46 int build_id_cache__remove_s(const char *sbuild_id); 47 + 48 + extern char buildid_dir[]; 49 + 50 + void set_buildid_dir(const char *dir); 47 51 void disable_buildid_cache(void); 48 52 49 53 #endif
-3
tools/perf/util/util.h
··· 14 14 #include <stdarg.h> 15 15 #include <linux/types.h> 16 16 17 - extern char buildid_dir[]; 18 - 19 17 #ifdef __GNUC__ 20 18 #define NORETURN __attribute__((__noreturn__)) 21 19 #else ··· 34 36 void set_warning_routine(void (*routine)(const char *err, va_list params)); 35 37 36 38 int prefixcmp(const char *str, const char *prefix); 37 - void set_buildid_dir(const char *dir); 38 39 39 40 static inline void *zalloc(size_t size) 40 41 {