diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-02-02 09:51:52 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2020-02-04 02:08:49 +0300 |
commit | 8fc91b972b734a62a3f3ef45db06d06617f739ea (patch) | |
tree | 3af408c796e2171a4793374f107be5f3166b1727 /tools/bpf | |
parent | 257af63d7f84f0672aa6a24b5511871f00741f19 (diff) | |
download | linux-8fc91b972b734a62a3f3ef45db06d06617f739ea.tar.xz |
selftests/bpf: Fix trampoline_count.c selftest compilation warning
Fix missing braces compilation warning in trampoline_count test:
.../prog_tests/trampoline_count.c: In function ‘test_trampoline_count’:
.../prog_tests/trampoline_count.c:49:9: warning: missing braces around initializer [-Wmissing-braces]
struct inst inst[MAX_TRAMP_PROGS] = { 0 };
^
.../prog_tests/trampoline_count.c:49:9: warning: (near initialization for ‘inst[0]’) [-Wmissing-braces]
Fixes: d633d57902a5 ("selftest/bpf: Add test for allowed trampolines count")
Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200202065152.2718142-1-andriin@fb.com
Diffstat (limited to 'tools/bpf')
0 files changed, 0 insertions, 0 deletions