From: Arnaldo Carvalho de Melo Date: Fri, 6 Apr 2018 17:53:56 +0000 (-0300) Subject: perf tools: No need to include namespaces.h in util.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ad0902e0c4004dc95bf15229933012121ff54033;p=linux.git 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 Cc: David Ahern Cc: Jiri Olsa Cc: Namhyung Kim Cc: Naveen N. Rao Cc: Sandipan Das Cc: Wang Nan Link: https://lkml.kernel.org/n/tip-vq26rsuwq1cqylpcyvq89c84@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/util/util.h b/tools/perf/util/util.h index 9496365da3d74..c9626c2062089 100644 --- a/tools/perf/util/util.h +++ b/tools/perf/util/util.h @@ -11,8 +11,7 @@ #include #include #include -#include -#include "namespaces.h" +#include /* General helper functions */ void usage(const char *err) __noreturn; @@ -26,6 +25,7 @@ static inline void *zalloc(size_t size) #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) struct dirent; +struct nsinfo; struct strlist; int mkdir_p(char *path, mode_t mode);