]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
bpf: Remove unused field "mod" in struct bpf_trampoline
authorMenglong Dong <dongmenglong.8@bytedance.com>
Sun, 28 Jan 2024 05:54:43 +0000 (13:54 +0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Mon, 29 Jan 2024 15:44:53 +0000 (16:44 +0100)
It seems that the field "mod" in struct bpf_trampoline is not used
anywhere after the commit 31bf1dbccfb0 ("bpf: Fix attaching
fentry/fexit/fmod_ret/lsm to modules"). So we can just remove it now.

Fixes: 31bf1dbccfb0 ("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
include/linux/bpf.h

index b86bd15a051da2ac8ba1fedff16d0884549b8618..1ebbee1d648ed9258fd60413595e0e9caa7c6153 100644 (file)
@@ -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 {