Commit cb80ddc67152 ("bpf: Convert bpf_preload.ko to use light skeleton.") drops the last caller of generic_free_nodedata(), it is useless, so remove it. Signed-off-by: Gaosheng Cui <cuigaosheng1@xxxxxxxxxx> --- kernel/bpf/preload/iterators/iterators.lskel.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/kernel/bpf/preload/iterators/iterators.lskel.h b/kernel/bpf/preload/iterators/iterators.lskel.h index 70f236a82fe1..e5f9c608f7f7 100644 --- a/kernel/bpf/preload/iterators/iterators.lskel.h +++ b/kernel/bpf/preload/iterators/iterators.lskel.h @@ -407,19 +407,4 @@ iterators_bpf__load(struct iterators_bpf *skel) return 0; } -static inline struct iterators_bpf * -iterators_bpf__open_and_load(void) -{ - struct iterators_bpf *skel; - - skel = iterators_bpf__open(); - if (!skel) - return NULL; - if (iterators_bpf__load(skel)) { - iterators_bpf__destroy(skel); - return NULL; - } - return skel; -} - #endif /* __ITERATORS_BPF_SKEL_H__ */ -- 2.25.1