projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94e87a8
)
perf tools: No need to include namespaces.h in util.h
author
Arnaldo Carvalho de Melo
<
[email protected]
>
Fri, 6 Apr 2018 17:53:56 +0000
(14:53 -0300)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Mon, 9 Apr 2018 13:57:50 +0000
(10:57 -0300)
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 <
[email protected]
>
Cc: David Ahern <
[email protected]
>
Cc: Jiri Olsa <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Naveen N. Rao <
[email protected]
>
Cc: Sandipan Das <
[email protected]
>
Cc: Wang Nan <
[email protected]
>
Link:
https://lkml.kernel.org/n/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/util.h
patch
|
blob
|
history
diff --git
a/tools/perf/util/util.h
b/tools/perf/util/util.h
index 9496365da3d74fb1e57839acc02e4322d5c9fea6..c9626c20620890ba689faa2207d6ade3f4433874 100644
(file)
--- a/
tools/perf/util/util.h
+++ b/
tools/perf/util/util.h
@@
-11,8
+11,7
@@
#include <stdlib.h>
#include <stdarg.h>
#include <linux/compiler.h>
-#include <linux/types.h>
-#include "namespaces.h"
+#include <sys/types.h>
/* 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);