]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Fix unused attribute usage in subprogs_unused test
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 11 Nov 2020 23:12:15 +0000 (15:12 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 12 Nov 2020 17:13:49 +0000 (09:13 -0800)
commit2de0629daa2727b94f95e16fde09616c9bf9ac53
tree6fda60c36d92c62a0c25a0e93c577b6f9ab80917
parent73b443b70c01b633bf5f155527907ed76bf5886c
selftests/bpf: Fix unused attribute usage in subprogs_unused test

Correct attribute name is "unused". maybe_unused is a C++17 addition.
This patch fixes compilation warning during selftests compilation.

Fixes: 667fad517816 ("libbpf: Don't attempt to load unused subprog as an entry-point BPF program")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20201111231215.1779147-1-andrii@kernel.org
tools/testing/selftests/bpf/progs/test_subprogs_unused.c