tree: https://github.com/ammarfaizi2/linux-block stable/linux-stable-rc/queue/5.10 head: 4bf786c7025a93c799f7250584842d3a075fb68b commit: 6c6eb9f3070e47cfa172eb8a0fa4d869bf1f0eca [16/69] libbpf: Handle size overflow for ringbuf mmap config: x86_64-randconfig-a013 compiler: gcc-11 (Debian 11.3.0-8) 11.3.0 reproduce (this is a W=1 build): # https://github.com/ammarfaizi2/linux-block/commit/6c6eb9f3070e47cfa172eb8a0fa4d869bf1f0eca git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block git fetch --no-tags ammarfaizi2-block stable/linux-stable-rc/queue/5.10 git checkout 6c6eb9f3070e47cfa172eb8a0fa4d869bf1f0eca # save the config file mkdir build_dir && cp config build_dir/.config make W=1 O=build_dir ARCH=x86_64 prepare If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): ringbuf.c: In function 'ring_buffer__add': >> ringbuf.c:117:24: error: implicit declaration of function 'libbpf_err'; did you mean 'libbpf_print'? [-Werror=implicit-function-declaration] 117 | return libbpf_err(-E2BIG); | ^~~~~~~~~~ | libbpf_print >> ringbuf.c:117:24: error: nested extern declaration of 'libbpf_err' [-Werror=nested-externs] cc1: all warnings being treated as errors make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/ringbuf.o] Error 1 make[5]: *** Waiting for unfinished jobs.... make[4]: *** [Makefile:179: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2 make[3]: *** [Makefile:48: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2 make[2]: *** [Makefile:71: bpf/resolve_btfids] Error 2 make[1]: *** [Makefile:1962: tools/bpf/resolve_btfids] Error 2 make[1]: Target 'prepare' not remade because of errors. make: *** [Makefile:185: __sub-make] Error 2 make: Target 'prepare' not remade because of errors. -- 0-DAY CI Kernel Test Service https://01.org/lkp