]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Fix build errors.
authorDavid Miller <davem@davemloft.net>
Tue, 19 Dec 2017 20:53:11 +0000 (15:53 -0500)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 20 Dec 2017 00:33:25 +0000 (01:33 +0100)
commit1b0ecbcbdd34b0590c12d9ef096fb2337478f08e
treeecfdce336b2e383b862054b8a7135578bddbc53f
parent4a2e298ad86a9bb46db07aa8b680281c923e053b
libbpf: Fix build errors.

These elf object pieces are of type Elf64_Xword and therefore could be
"long long" on some builds.

Cast to "long long" and use printf format %lld to deal with this since
we are building with -Werror=format.

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