aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/perf_buffer.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-12-12 17:19:18 +0000
committerAlexei Starovoitov <[email protected]>2019-12-12 21:47:24 +0000
commit679152d3a32e305c213f83160c328c37566ae8bc (patch)
tree351a0db3db9a691a61ad0678798a1df012b60ad7 /tools/testing/selftests/bpf/prog_tests/perf_buffer.c
parentbpf, x86, arm64: Enable jit by default when not built as always-on (diff)
downloadkernel-679152d3a32e305c213f83160c328c37566ae8bc.tar.gz
kernel-679152d3a32e305c213f83160c328c37566ae8bc.zip
libbpf: Fix printf compilation warnings on ppc64le arch
On ppc64le __u64 and __s64 are defined as long int and unsigned long int, respectively. This causes compiler to emit warning when %lld/%llu are used to printf 64-bit numbers. Fix this by casting to size_t/ssize_t with %zu and %zd format specifiers, respectively. v1->v2: - use size_t/ssize_t instead of custom typedefs (Martin). Fixes: 1f8e2bcb2cd5 ("libbpf: Refactor relocation handling") Fixes: abd29c931459 ("libbpf: allow specifying map definitions using BTF") Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Alexei Starovoitov <[email protected]> Acked-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/perf_buffer.c')
0 files changed, 0 insertions, 0 deletions