]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix trampoline_count.c selftest compilation warning
authorAndrii Nakryiko <andriin@fb.com>
Sun, 2 Feb 2020 06:51:52 +0000 (22:51 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 3 Feb 2020 23:08:49 +0000 (00:08 +0100)
commit053530d9e9c746dba853ff0b29c83f9a9287a585
tree3af408c796e2171a4793374f107be5f3166b1727
parent1bf381d42dc9500051b528aa2d9e5579203ae4d7
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: 2842a3d6ffed ("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
tools/testing/selftests/bpf/prog_tests/trampoline_count.c