2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/tools/lib/bpf
Sirio Balmelli a1c818109c tools/lib/libbpf.c: fix string format to allow build on arm32
On arm32, 'cd tools/testing/selftests/bpf && make' fails with:

libbpf.c:80:10: error: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int64_t {aka long long int}’ [-Werror=format=]
   (func)("libbpf: " fmt, ##__VA_ARGS__); \
          ^
libbpf.c:83:30: note: in expansion of macro ‘__pr’
 #define pr_warning(fmt, ...) __pr(__pr_warning, fmt, ##__VA_ARGS__)
                              ^~~~
libbpf.c:1072:3: note: in expansion of macro ‘pr_warning’
   pr_warning("map:%s value_type:%s has BTF type_size:%ld != value_size:%u\n",

To fix, typecast 'key_size' and amend format string.

Signed-off-by: Sirio Balmelli <sirio@b-ad.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2018-05-23 20:18:00 +02:00
..
.gitignore tools lib bpf: Change FEATURE-DUMP to FEATURE-DUMP.libbpf 2015-11-05 12:47:51 -03:00
bpf.c bpf: btf: Add tests for the btf uapi changes 2018-05-23 12:03:32 +02:00
bpf.h bpf: btf: Add tests for the btf uapi changes 2018-05-23 12:03:32 +02:00
btf.c bpf: btf: Add tests for the btf uapi changes 2018-05-23 12:03:32 +02:00
btf.h bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
Build bpf: btf: Add BTF support to libbpf 2018-04-19 21:46:25 +02:00
libbpf.c tools/lib/libbpf.c: fix string format to allow build on arm32 2018-05-23 20:18:00 +02:00
libbpf.h bpf: btf: Add tests for the btf uapi changes 2018-05-23 12:03:32 +02:00
Makefile tools: bpf: move the event reading loop to libbpf 2018-05-11 01:40:52 +02:00
nlattr.c libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00
nlattr.h libbpf: add error reporting in XDP 2018-02-02 17:53:48 -08:00