Hi Alan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on bpf-next/master]
url:
https://github.com/0day-ci/linux/commits/Alan-Maguire/libbpf-BTF-dumper-s...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git master
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
#
https://github.com/0day-ci/linux/commit/a0ac40961a89472fd36dcc5449e7a8e0e...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Alan-Maguire/libbpf-BTF-dumper-support-for-typed-data/20210619-165722
git checkout a0ac40961a89472fd36dcc5449e7a8e0e263d4c0
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
btf_dump.c: In function 'btf_dump_type_data_check_zero':
> btf_dump.c:2107:9: error: declaration of 'bit_sz' shadows
a parameter [-Werror=shadow]
2107 | __u8 bit_sz;
| ^~~~~~
btf_dump.c:2024:12: note: shadowed declaration is here
2024 | __u8 bit_sz)
| ~~~~~^~~~~~
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96:
tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o] Error 1
make[4]: *** [Makefile:158: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o]
Error 2
make[3]: *** [Makefile:44: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
--
btf_dump.c: In function 'btf_dump_type_data_check_zero':
> btf_dump.c:2107:9: error: declaration of 'bit_sz' shadows
a parameter [-Werror=shadow]
2107 | __u8 bit_sz;
| ^~~~~~
btf_dump.c:2024:12: note: shadowed declaration is here
2024 | __u8 bit_sz)
| ~~~~~^~~~~~
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96:
tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o] Error 1
make[4]: *** [Makefile:158: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o]
Error 2
make[3]: *** [Makefile:44: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1965: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'modules_prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'modules_prepare' not remade because of errors.
--
btf_dump.c: In function 'btf_dump_type_data_check_zero':
> btf_dump.c:2107:9: error: declaration of 'bit_sz' shadows
a parameter [-Werror=shadow]
2107 | __u8 bit_sz;
| ^~~~~~
btf_dump.c:2024:12: note: shadowed declaration is here
2024 | __u8 bit_sz)
| ~~~~~^~~~~~
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96:
tools/bpf/resolve_btfids/libbpf/staticobjs/btf_dump.o] Error 1
make[5]: *** Waiting for unfinished jobs....
make[4]: *** [Makefile:158: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o]
Error 2
make[3]: *** [Makefile:44: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1965: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [Makefile:215: __sub-make] Error 2
make: Target 'prepare' not remade because of errors.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org