Re: [PATCH v5 bpf-next] bpftool: Make skeleton C++ compatible with explicit casts
From: patchwork-bot+netdevbpf
Date: Fri Jan 09 2026 - 14:03:30 EST
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@xxxxxxxxxx>:
On Tue, 6 Jan 2026 10:31:23 +0800 you wrote:
> From: WanLi Niu <niuwl1@xxxxxxxxxxxxxxx>
>
> Fix C++ compilation errors in generated skeleton by adding explicit
> pointer casts and use char * subtraction for offset calculation
>
> error: invalid conversion from 'void*' to '<obj_name>*' [-fpermissive]
> | skel = skel_alloc(sizeof(*skel));
> | ~~~~~~~~~~^~~~~~~~~~~~~~~
> | |
> | void*
>
> [...]
Here is the summary with links:
- [v5,bpf-next] bpftool: Make skeleton C++ compatible with explicit casts
https://git.kernel.org/bpf/bpf-next/c/4effccde0a05
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html