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

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>

+2 -2
+2 -2
tools/perf/util/util.h
··· 11 11 #include <stdlib.h> 12 12 #include <stdarg.h> 13 13 #include <linux/compiler.h> 14 - #include <linux/types.h> 15 - #include "namespaces.h" 14 + #include <sys/types.h> 16 15 17 16 /* General helper functions */ 18 17 void usage(const char *err) __noreturn; ··· 25 26 #define zfree(ptr) ({ free(*ptr); *ptr = NULL; }) 26 27 27 28 struct dirent; 29 + struct nsinfo; 28 30 struct strlist; 29 31 30 32 int mkdir_p(char *path, mode_t mode);