diff options
| author | Kui-Feng Lee <[email protected]> | 2024-03-12 01:37:26 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2024-03-14 20:34:21 +0000 |
| commit | c2a0257c1edf16c6acd2afac7572d7e9043b6577 (patch) | |
| tree | d68b6bd0f77702745446b0b6e15ce5558efb5d7a /tools/lib/bpf/libbpf.c | |
| parent | Merge tag 'net-next-6.9' of git://git.kernel.org/pub/scm/linux/kernel/git/net... (diff) | |
| download | kernel-c2a0257c1edf16c6acd2afac7572d7e9043b6577.tar.gz kernel-c2a0257c1edf16c6acd2afac7572d7e9043b6577.zip | |
bpftool: Cast pointers for shadow types explicitly.
According to a report, skeletons fail to assign shadow pointers when being
compiled with C++ programs. Unlike C doing implicit casting for void
pointers, C++ requires an explicit casting.
To support C++, we do explicit casting for each shadow pointer.
Also add struct_ops_module.skel.h to test_cpp to validate C++
compilation as part of BPF selftests.
Signed-off-by: Kui-Feng Lee <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Acked-by: Yonghong Song <[email protected]>
Acked-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/libbpf.c')
0 files changed, 0 insertions, 0 deletions
