aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <[email protected]>2019-12-26 21:02:53 +0000
committerDaniel Borkmann <[email protected]>2019-12-27 09:11:05 +0000
commit7c8dce4b166113743adad131b5a24c4acc12f92c (patch)
tree90b8cb27d1ec83d9086fac9b4d8fee846bfbc3d5 /tools/bpf/bpftool/prog.c
parentbpf: Print error message for bpftool cgroup show (diff)
downloadkernel-7c8dce4b166113743adad131b5a24c4acc12f92c.tar.gz
kernel-7c8dce4b166113743adad131b5a24c4acc12f92c.zip
bpftool: Make skeleton C code compilable with C++ compiler
When auto-generated BPF skeleton C code is included from C++ application, it triggers compilation error due to void * being implicitly casted to whatever target pointer type. This is supported by C, but not C++. To solve this problem, add explicit casts, where necessary. To ensure issues like this are captured going forward, add skeleton usage in test_cpp test. Signed-off-by: Andrii Nakryiko <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions