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

perf tools: Remove string.h from util.h

Not needed in this header, added to the places that need strdup,
strcmp and a few other prototypes.

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

+4 -1
+1
tools/perf/util/comm.c
··· 3 3 #include <errno.h> 4 4 #include <stdlib.h> 5 5 #include <stdio.h> 6 + #include <string.h> 6 7 #include <linux/refcount.h> 7 8 8 9 struct comm_str {
+1
tools/perf/util/namespaces.c
··· 11 11 #include "event.h" 12 12 #include <stdlib.h> 13 13 #include <stdio.h> 14 + #include <string.h> 14 15 15 16 struct namespaces *namespaces__new(struct namespaces_event *event) 16 17 {
-1
tools/perf/util/util.h
··· 15 15 #include <stddef.h> 16 16 #include <stdlib.h> 17 17 #include <stdarg.h> 18 - #include <string.h> 19 18 #include <sys/wait.h> 20 19 #include <poll.h> 21 20 #include <linux/types.h>
+2
tools/perf/util/xyarray.c
··· 1 1 #include "xyarray.h" 2 2 #include "util.h" 3 + #include <stdlib.h> 4 + #include <string.h> 3 5 4 6 struct xyarray *xyarray__new(int xlen, int ylen, size_t entry_size) 5 7 {