]> git.kernelconcepts.de Git - karo-tx-linux.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)
commitbad1926dd2f60bbb4af5223ace3a7b34a0219a66
tree2c279740a51b4998df490a261825494ddffa210f
parentb0a0c2566f28e71e5e32121992ac8060cec75510
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 b0c47807d31d ("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