]> 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)
commitd99602248b89ada4331c6ea7e4cba1bd1c32ca05
tree2c279740a51b4998df490a261825494ddffa210f
parentd5c40bd1fd85caf7dc94c1f3d4717f9cb5b89e63
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 451e110d6f00 ("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