Skip to content

Commit

Permalink
bpf: Remove unused field "mod" in struct bpf_trampoline
Browse files Browse the repository at this point in the history
It seems that the field "mod" in struct bpf_trampoline is not used
anywhere after the commit 31bf1db ("bpf: Fix attaching
fentry/fexit/fmod_ret/lsm to modules"). So we can just remove it now.

Fixes: 31bf1db ("bpf: Fix attaching fentry/fexit/fmod_ret/lsm to modules")
Signed-off-by: Menglong Dong <dongmenglong.8@bytedance.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20240128055443.413291-1-dongmenglong.8@bytedance.com
  • Loading branch information
Menglong Dong authored and Daniel Borkmann committed Jan 29, 2024
1 parent f149d03 commit efaa47d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion include/linux/bpf.h
Original file line number Diff line number Diff line change
Expand Up @@ -1189,7 +1189,6 @@ struct bpf_trampoline {
int progs_cnt[BPF_TRAMP_MAX];
/* Executable image of trampoline */
struct bpf_tramp_image *cur_image;
struct module *mod;
};

struct bpf_attach_target_info {
Expand Down

0 comments on commit efaa47d

Please sign in to comment.