diff options
| author | Andrii Nakryiko <[email protected]> | 2020-08-13 20:49:38 +0000 |
|---|---|---|
| committer | Alexei Starovoitov <[email protected]> | 2020-08-13 23:45:41 +0000 |
| commit | 9028bbcc3e12510cac13a9554f1a1e39667a4387 (patch) | |
| tree | c45138d4f18ade4245fb7ae7578f1d7b9533a0e3 /tools/testing/selftests/bpf/prog_tests/skb_ctx.c | |
| parent | tools/bpftool: Fix compilation warnings in 32-bit mode (diff) | |
| download | kernel-9028bbcc3e12510cac13a9554f1a1e39667a4387.tar.gz kernel-9028bbcc3e12510cac13a9554f1a1e39667a4387.zip | |
selftest/bpf: Fix compilation warnings in 32-bit mode
Fix compilation warnings emitted when compiling selftests for 32-bit platform
(x86 in my case).
Signed-off-by: Andrii Nakryiko <[email protected]>
Signed-off-by: Alexei Starovoitov <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/skb_ctx.c')
| -rw-r--r-- | tools/testing/selftests/bpf/prog_tests/skb_ctx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c index 25de86af2d03..fafeddaad6a9 100644 --- a/tools/testing/selftests/bpf/prog_tests/skb_ctx.c +++ b/tools/testing/selftests/bpf/prog_tests/skb_ctx.c @@ -81,7 +81,7 @@ void test_skb_ctx(void) CHECK_ATTR(tattr.ctx_size_out != sizeof(skb), "ctx_size_out", - "incorrect output size, want %lu have %u\n", + "incorrect output size, want %zu have %u\n", sizeof(skb), tattr.ctx_size_out); for (i = 0; i < 5; i++) |
