mirror-linux/tools/include/uapi/linux
Alexei Starovoitov e27afb84b4 selftests/bpf: fix broken build of test_maps
fix multiple build errors and warnings

1.
test_maps.c: In function ‘test_map_rdonly’:
test_maps.c:1051:30: error: ‘BPF_F_RDONLY’ undeclared (first use in this function)
        MAP_SIZE, map_flags | BPF_F_RDONLY);

2.
test_maps.c:1048:6: warning: unused variable ‘i’ [-Wunused-variable]
  int i, fd, key = 0, value = 0;

3.
test_maps.c:1087:2: error: called object is not a function or function pointer
  assert(bpf_map_lookup_elem(fd, &key, &value) == -1 && errno == EPERM);

4.
./bpf_helpers.h:72:11: error: use of undeclared identifier 'BPF_FUNC_getsockopt'
        (void *) BPF_FUNC_getsockopt;

Fixes: e043325b30 ("bpf: Add tests for eBPF file mode")
Fixes: 6e71b04a82 ("bpf: Add file mode configuration into bpf maps")
Fixes: cd86d1fd21 ("bpf: Adding helper function bpf_getsockops")
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-10-23 01:06:31 +01:00
..
bpf.h selftests/bpf: fix broken build of test_maps 2017-10-23 01:06:31 +01:00
bpf_common.h
bpf_perf_event.h selftests/bpf: fix broken build 2017-03-12 23:48:41 -07:00
fcntl.h tools: Update include/uapi/linux/fcntl.h copy from the kernel 2017-07-18 23:13:50 -03:00
hw_breakpoint.h hw_breakpoint: Allow watchpoint of length 3,5,6 and 7 2016-11-18 17:23:17 +00:00
kvm.h tools include: Sync kernel ABI headers with tooling headers 2017-09-25 10:39:44 -03:00
mman.h tools include: Sync kernel ABI headers with tooling headers 2017-09-25 10:39:44 -03:00
perf_event.h perf tools: Support new sample type for physical address 2017-09-01 14:46:00 -03:00
sched.h tools include uapi: Grab a copy of linux/sched.h 2017-07-20 11:02:51 -03:00
stat.h tools/include: Sync kernel ABI headers with tooling headers 2017-05-24 09:00:21 +02:00
vhost.h tools include uapi: Grab a copy of linux/vhost.h 2017-08-01 13:04:56 -03:00