perf tools: Remove poll.h and wait.h from util.h

Not needed in this header, added to the places that need poll(), wait()
and a few other prototypes.

Link: http://lkml.kernel.org/n/tip-i39c7b6xmo1vwd9wxp6fmkl0@git.kernel.orgSigned-off-by: default avatarArnaldo Carvalho de Melo <acme@redhat.com>
parent 7a8ef4c4
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include <signal.h> #include <signal.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/wait.h>
#include <errno.h> #include <errno.h>
#include <string.h> #include <string.h>
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
#include <unistd.h> #include <unistd.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include <poll.h>
#include "debug.h" #include "debug.h"
#include <subcmd/parse-options.h> #include <subcmd/parse-options.h>
......
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include <linux/time64.h> #include <linux/time64.h>
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <poll.h>
#include <termios.h> #include <termios.h>
#include <semaphore.h> #include <semaphore.h>
#include <signal.h> #include <signal.h>
......
...@@ -44,10 +44,12 @@ ...@@ -44,10 +44,12 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <poll.h>
#include <unistd.h> #include <unistd.h>
#include <sched.h> #include <sched.h>
#include <signal.h> #include <signal.h>
#include <sys/mman.h> #include <sys/mman.h>
#include <sys/wait.h>
#include <asm/bug.h> #include <asm/bug.h>
#include <linux/time64.h> #include <linux/time64.h>
......
...@@ -78,6 +78,7 @@ ...@@ -78,6 +78,7 @@
#include <math.h> #include <math.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/wait.h>
#include <unistd.h> #include <unistd.h>
#include "sane_ctype.h" #include "sane_ctype.h"
......
...@@ -45,6 +45,7 @@ ...@@ -45,6 +45,7 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */ #include <libaudit.h> /* FIXME: Still needed for audit_errno_to_name */
#include <poll.h>
#include <signal.h> #include <signal.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <errno.h> #include <errno.h>
#include <unistd.h> #include <unistd.h>
#include <string.h> #include <string.h>
#include <sys/wait.h>
#include "builtin.h" #include "builtin.h"
#include "hist.h" #include "hist.h"
#include "intlist.h" #include "intlist.h"
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#include <errno.h> #include <errno.h>
#include <inttypes.h> #include <inttypes.h>
#include <string.h> #include <string.h>
#include <sys/wait.h>
#include "tests.h" #include "tests.h"
#include "evlist.h" #include "evlist.h"
#include "evsel.h" #include "evsel.h"
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
#include <string.h> #include <string.h>
#include <stdarg.h> #include <stdarg.h>
#include <stdio.h> #include <stdio.h>
#include <sys/wait.h>
#include <api/debug.h> #include <api/debug.h>
#include <linux/time64.h> #include <linux/time64.h>
#ifdef HAVE_BACKTRACE_SUPPORT #ifdef HAVE_BACKTRACE_SUPPORT
......
#include "cache.h" #include "cache.h"
#include "config.h" #include "config.h"
#include <poll.h>
#include <stdio.h> #include <stdio.h>
#include <subcmd/help.h> #include <subcmd/help.h>
#include "../builtin.h" #include "../builtin.h"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "llvm-utils.h" #include "llvm-utils.h"
#include "config.h" #include "config.h"
#include "util.h" #include "util.h"
#include <sys/wait.h>
#define CLANG_BPF_CMD_DEFAULT_TEMPLATE \ #define CLANG_BPF_CMD_DEFAULT_TEMPLATE \
"$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\ "$CLANG_EXEC -D__KERNEL__ -D__NR_CPUS__=$NR_CPUS "\
......
...@@ -12,8 +12,6 @@ ...@@ -12,8 +12,6 @@
#include <stddef.h> #include <stddef.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdarg.h> #include <stdarg.h>
#include <sys/wait.h>
#include <poll.h>
#include <linux/types.h> #include <linux/types.h>
extern char buildid_dir[]; extern char buildid_dir[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment