perf evlist: Remove fcntl.h from evlist.h
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 22 Jan 2018 19:42:16 +0000 (16:42 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 25 Jan 2018 09:37:30 +0000 (06:37 -0300)
Not needed there, fixup the places where it is needed and was getting
only by luck via evlist.h.

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: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-yxjpetn64z8vjuguu84gr6x6@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/builtin-script.c
tools/perf/builtin-trace.c
tools/perf/tests/bpf.c
tools/perf/tests/openat-syscall-tp-fields.c
tools/perf/util/cgroup.c
tools/perf/util/evlist.c
tools/perf/util/evlist.h
tools/perf/util/parse-events.c

index 98853162eae94c36b7e642bd358418d7d7d2d7ad..55d919dc5bc632b4a967dde8a5dbfdacf5da3f63 100644 (file)
@@ -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>
index 3499d68e1d702d3f993a1838471a2e63fa189a72..ab19a6ee40930acc770ff6af9cbe3710028b9feb 100644 (file)
@@ -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"
index 46d3ff09440c1737350a3a13f345b04c55515efd..868306ccd8b8eba9c7f72d1b7f274aff1a9314e0 100644 (file)
@@ -56,6 +56,7 @@
 #include <linux/random.h>
 #include <linux/stringify.h>
 #include <linux/time64.h>
+#include <fcntl.h>
 
 #include "sane_ctype.h"
 
index 8e709c9d512c48fd49cf2825473f64ad5d2db4ef..e8399beca62b32ff963f5e6828df85e2cb7d6100 100644 (file)
@@ -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>
index 97c9407d02a010689c08e1e7c73903c93687fea5..43519267b93badf3426ecee4dae79c63b19e5e5c 100644 (file)
@@ -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"
index d9ffc1e6eb3997b6e57202599b0406fa2ce85c9e..984f69144f87e2dfef2bf5123537d36d4eeeaa28 100644 (file)
@@ -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;
 
index 120efd85f2c8c70b4c6f4e36c93548bdb619d5f2..ac35cd214feb224cfc61ed743c257dffaad19699 100644 (file)
@@ -25,6 +25,7 @@
 #include "parse-events.h"
 #include <subcmd/parse-options.h>
 
+#include <fcntl.h>
 #include <sys/ioctl.h>
 #include <sys/mman.h>
 
index e7fbca69cbac47bd08643abd0509e1bd807d6c65..75f8e0ad5d765f3412c5b34734bb019189056b54 100644 (file)
@@ -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"
index 170316795a1845c7e013d84ee17ba663da200d6d..34589c427e524dd952d3d8bf630e5c8ca9efbb70 100644 (file)
@@ -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"