Skip to contentSkip to conversation

bpf: Remove unused fields of struct bpf_map_owner

PATCH Applied Alexei Starovoitov 2 participants 2 messages Dec 3

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bpf: Remove unused fields of struct bpf_map_owner

From: Alexei Starovoitov <[email protected]>

async_cb and has_prologue are for struct bpf_prog_aux. They were added to struct bpf_map_owner by mistake, nothing reads or writes them.

---
 include/linux/bpf.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/bpf.h +0 -2
index 340d66a523d8..a1bd30e6511b 100644
@@ -295,8 +295,6 @@ struct bpf_map_owner {
 	enum bpf_prog_type type;
 	bool jited;
 	bool xdp_has_frags;
-	bool async_cb;
-	bool has_prologue;
 	bool sleepable;
 	u64 storage_cookie[MAX_BPF_CGROUP_STORAGE_TYPE];
 	const struct btf_type *attach_func_proto;
Signature · 1 line
2.55.0
#1 lore raw
This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Hello:

This patch was applied to bpf/bpf-next.git (master) by Alexei Starovoitov <[email protected]>:

Quoted 8 lines · On Thu, 3 Dec 2026 01:48:49 +0000 you wrote:

From: Alexei Starovoitov <[email protected]>

async_cb and has_prologue are for struct bpf_prog_aux. They were added to struct bpf_map_owner by mistake, nothing reads or writes them.

[...]

Here is the summary with links:
- [bpf-next] bpf: Remove unused fields of struct bpf_map_owner

    https://git.kernel.org/bpf/bpf-next/c/2d3198c9a6a8

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html