diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-06 13:53:56 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-04-09 09:57:50 -0400 |
commit | ad0902e0c4004dc95bf15229933012121ff54033 (patch) | |
tree | a06000e7a2455bb05a65d6c0715321167d5fe741 /tools | |
parent | 94e87a8bd529121ea90219164c65c36ea1d19e56 (diff) |
perf tools: No need to include namespaces.h in util.h
The only thing that is needed there is a forward declaration for 'struct
nsinfo', so disentanble this, which in turns allows built-in clang
builds, i.e. 'make LIBCLANGLLVM=1 -C tools/perf'.
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Naveen N. Rao <naveen.n.rao@linux.vnet.ibm.com>
Cc: Sandipan Das <sandipan@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-vq26rsuwq1cqylpcyvq89c84@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/util.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 9496365da3d7..c9626c206208 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h | |||
@@ -11,8 +11,7 @@ | |||
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include <stdarg.h> | 12 | #include <stdarg.h> |
13 | #include <linux/compiler.h> | 13 | #include <linux/compiler.h> |
14 | #include <linux/types.h> | 14 | #include <sys/types.h> |
15 | #include "namespaces.h" | ||
16 | 15 | ||
17 | /* General helper functions */ | 16 | /* General helper functions */ |
18 | void usage(const char *err) __noreturn; | 17 | void usage(const char *err) __noreturn; |
@@ -26,6 +25,7 @@ static inline void *zalloc(size_t size) | |||
26 | #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) | 25 | #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) |
27 | 26 | ||
28 | struct dirent; | 27 | struct dirent; |
28 | struct nsinfo; | ||
29 | struct strlist; | 29 | struct strlist; |
30 | 30 | ||
31 | int mkdir_p(char *path, mode_t mode); | 31 | int mkdir_p(char *path, mode_t mode); |