perf evlist: Remove fcntl.h from evlist.h
tip-bot for Arnaldo Carvalho de Melo
merge botCommit-ID: f0d1e80ab4892b118eaec9e2e8b7394a446ea5d6 Gitweb: https://git.kernel.org/tip/f0d1e80ab4892b118eaec9e2e8b7394a446ea5d6 Author: Arnaldo Carvalho de Melo <[email protected]> AuthorDate: Mon, 22 Jan 2018 16:42:16 -0300 Committer: Arnaldo Carvalho de Melo <[email protected]> CommitDate: Tue, 23 Jan 2018 09:51:51 -0300
perf evlist: Remove fcntl.h from evlist.h
Not needed there, fixup the places where it is needed and was getting only by luck via evlist.h.
Cc Adrian Hunter <[email protected]>
Cc David Ahern <[email protected]>
Cc Jiri Olsa <[email protected]>
Cc Namhyung Kim <[email protected]>
Cc Wang Nan <[email protected]>
Signed-off-by Arnaldo Carvalho de Melo <[email protected]>
--- tools/perf/builtin-kvm.c | 3 +++ tools/perf/builtin-script.c | 1 + tools/perf/builtin-trace.c | 1 + tools/perf/tests/bpf.c | 1 + tools/perf/tests/openat-syscall-tp-fields.c | 3 +++ tools/perf/util/cgroup.c | 3 +++ tools/perf/util/evlist.c | 1 + tools/perf/util/evlist.h | 1 - tools/perf/util/parse-events.c | 3 +++ 9 files changed, 16 insertions(+), 1 deletion(-)
tools/perf/builtin-kvm.c +3 -0
@@ -26,6 +26,9 @@#include <sys/timerfd.h> #endif #include <sys/time.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> #include <linux/kernel.h> #include <linux/time64.h>
tools/perf/builtin-script.c +1 -0
@@ -42,6 +42,7 @@#include <sys/param.h> #include <sys/types.h> #include <sys/stat.h> +#include <fcntl.h> #include <unistd.h> #include "sane_ctype.h"
tools/perf/builtin-trace.c +1 -0
@@ -56,6 +56,7 @@#include <linux/random.h> #include <linux/stringify.h> #include <linux/time64.h> +#include <fcntl.h> #include "sane_ctype.h"
tools/perf/tests/bpf.c +1 -0
@@ -3,6 +3,7 @@#include <sys/epoll.h> #include <sys/types.h> #include <sys/stat.h> +#include <fcntl.h> #include <util/util.h> #include <util/bpf-loader.h> #include <util/evlist.h>
tools/perf/tests/openat-syscall-tp-fields.c +3 -0
@@ -1,5 +1,8 @@// SPDX-License-Identifier: GPL-2.0 #include <linux/err.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> #include "perf.h" #include "evlist.h" #include "evsel.h"
tools/perf/util/cgroup.c +3 -0
@@ -6,6 +6,9 @@#include "cgroup.h" #include "evlist.h" #include <linux/stringify.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> int nr_cgroups;
tools/perf/util/evlist.c +1 -0
@@ -25,6 +25,7 @@#include "parse-events.h" #include <subcmd/parse-options.h> +#include <fcntl.h> #include <sys/ioctl.h> #include <sys/mman.h>
tools/perf/util/evlist.h +0 -1
@@ -7,7 +7,6 @@#include <linux/refcount.h> #include <linux/list.h> #include <api/fd/array.h> -#include <fcntl.h> #include <stdio.h> #include "../perf.h" #include "event.h"
tools/perf/util/parse-events.c +3 -0
@@ -4,6 +4,9 @@#include <dirent.h> #include <errno.h> #include <sys/ioctl.h> +#include <sys/types.h> +#include <sys/stat.h> +#include <fcntl.h> #include <sys/param.h> #include "term.h" #include "../perf.h"