Skip to content

Commit bafae98

Browse files
committed
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]> Link: https://lkml.kernel.org/n/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 3258abe commit bafae98

File tree

9 files changed

+16
-1
lines changed

9 files changed

+16
-1
lines changed

tools/perf/builtin-kvm.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
#include <sys/timerfd.h>
2727
#endif
2828
#include <sys/time.h>
29+
#include <sys/types.h>
30+
#include <sys/stat.h>
31+
#include <fcntl.h>
2932

3033
#include <linux/kernel.h>
3134
#include <linux/time64.h>

tools/perf/builtin-script.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
#include <sys/param.h>
4343
#include <sys/types.h>
4444
#include <sys/stat.h>
45+
#include <fcntl.h>
4546
#include <unistd.h>
4647

4748
#include "sane_ctype.h"

tools/perf/builtin-trace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
#include <linux/random.h>
5757
#include <linux/stringify.h>
5858
#include <linux/time64.h>
59+
#include <fcntl.h>
5960

6061
#include "sane_ctype.h"
6162

tools/perf/tests/bpf.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include <sys/epoll.h>
44
#include <sys/types.h>
55
#include <sys/stat.h>
6+
#include <fcntl.h>
67
#include <util/util.h>
78
#include <util/bpf-loader.h>
89
#include <util/evlist.h>

tools/perf/tests/openat-syscall-tp-fields.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// SPDX-License-Identifier: GPL-2.0
22
#include <linux/err.h>
3+
#include <sys/types.h>
4+
#include <sys/stat.h>
5+
#include <fcntl.h>
36
#include "perf.h"
47
#include "evlist.h"
58
#include "evsel.h"

tools/perf/util/cgroup.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
#include "cgroup.h"
77
#include "evlist.h"
88
#include <linux/stringify.h>
9+
#include <sys/types.h>
10+
#include <sys/stat.h>
11+
#include <fcntl.h>
912

1013
int nr_cgroups;
1114

tools/perf/util/evlist.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include "parse-events.h"
2626
#include <subcmd/parse-options.h>
2727

28+
#include <fcntl.h>
2829
#include <sys/ioctl.h>
2930
#include <sys/mman.h>
3031

tools/perf/util/evlist.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
#include <linux/refcount.h>
88
#include <linux/list.h>
99
#include <api/fd/array.h>
10-
#include <fcntl.h>
1110
#include <stdio.h>
1211
#include "../perf.h"
1312
#include "event.h"

tools/perf/util/parse-events.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
#include <dirent.h>
55
#include <errno.h>
66
#include <sys/ioctl.h>
7+
#include <sys/types.h>
8+
#include <sys/stat.h>
9+
#include <fcntl.h>
710
#include <sys/param.h>
811
#include "term.h"
912
#include "../perf.h"

0 commit comments

Comments
 (0)