Hi Delyan, On 3/2/22 3:48 AM, Delyan Kratunov wrote:
In symmetry with bpf_object__open_skeleton(), bpf_object__open_subskeleton() performs the actual walking and linking of symbols described by bpf_sym_skeleton objects. Signed-off-by: Delyan Kratunov <delyank@xxxxxx> --- tools/lib/bpf/libbpf.c | 76 ++++++++++++++++++++++++++++++++++++++++ tools/lib/bpf/libbpf.h | 21 +++++++++++ tools/lib/bpf/libbpf.map | 2 ++ 3 files changed, 99 insertions(+)
Triggers CI failure with: > build_kernel - Building kernel libbpf.c: In function ‘bpf_object__open_subskeleton’: libbpf.c:11779:27: error: ‘i’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 11779 | sym->section, s->syms[i].name); | ^ cc1: all warnings being treated as errors make[5]: *** [/tmp/runner/work/bpf/bpf/tools/build/Makefile.build:96: /tmp/runner/work/bpf/bpf/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf.o] Error 1 make[4]: *** [Makefile:157: /tmp/runner/work/bpf/bpf/tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2 make[3]: *** [Makefile:55: /tmp/runner/work/bpf/bpf/tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2 make[1]: *** [Makefile:1334: tools/bpf/resolve_btfids] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:350: __build_one_by_one] Error 2 Error: Process completed with exit code 2. Thanks, Daniel