]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix tools and testing build.
authorDavid Miller <davem@davemloft.net>
Tue, 19 Dec 2017 20:22:03 +0000 (15:22 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 19 Dec 2017 23:15:05 +0000 (00:15 +0100)
commitbe618d200410b9e26de3e0fa515c2dcf56fab946
treee6fce796b4dd5a097347c78905455743284bde34
parent0c327e8404783887437a5629241b4f19b2a2cba4
bpf: Fix tools and testing build.

I'm getting various build failures on sparc64.  The key is
usually that the userland tools get built 32-bit.

1) clock_gettime() is in librt, so that must be added to the link
   libraries.

2) "sizeof(x)" must be printed with "%Z" printf prefix.

Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_progs.c