]> git.baikalelectronics.ru Git - kernel.git/commit
bpftool: Fix C++ additions to skeleton
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 16 Feb 2022 23:35:40 +0000 (15:35 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 17 Feb 2022 00:58:51 +0000 (16:58 -0800)
commita02ae5c15ffc78bedba8c42d1d49191d3343556f
tree4f7a775147c617a41a4a4fc3c905b3cc37bcf098
parentea8606dbbbb12c21a4e35e5035afb1192f2ee9ea
bpftool: Fix C++ additions to skeleton

Mark C++-specific T::open() and other methods as static inline to avoid
symbol redefinition when multiple files use the same skeleton header in
an application.

Fixes: 003a00253819 ("bpftool: Add C++-specific open/load/etc skeleton wrappers")
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220216233540.216642-1-andrii@kernel.org
tools/bpf/bpftool/gen.c