]> git.baikalelectronics.ru Git - kernel.git/commit
bpf, s390: fix build for libbpf and selftest suite
authorDaniel Borkmann <daniel@iogearbox.net>
Fri, 4 Aug 2017 12:20:55 +0000 (14:20 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Aug 2017 18:18:01 +0000 (11:18 -0700)
commit4d000da6e06fa186bccac2008ca9abf3b4d238a2
tree2c279740a51b4998df490a261825494ddffa210f
parent7b0e9e79351efc6c97e53845189f9c237433a785
bpf, s390: fix build for libbpf and selftest suite

The BPF feature test as well as libbpf is missing the __NR_bpf
define for s390 and currently refuses to compile (selftest suite
depends on libbpf as well). Similar issue was fixed some time
ago via 6fc219ba07b4 ("bpf: Add sparc support to tools and
samples."), just do the same and add definitions.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/build/feature/test-bpf.c
tools/lib/bpf/bpf.c