tree:
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git syscall
head: 213043c26fc999a2c53b6beaf87202ef3d1c3192
commit: b8d7e8566ed962ddc77ed9150c0b44361dd35f48 [11/12] bpf: Add
bpf_btf_find_by_name_kind() helper.
config: xtensa-randconfig-p002-20210310 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
wget
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O
~/bin/make.cross
chmod +x ~/bin/make.cross
#
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git/commit/?id=b8...
git remote add ast
https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git
git fetch --no-tags ast syscall
git checkout b8d7e8566ed962ddc77ed9150c0b44361dd35f48
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
> kernel/bpf/syscall.c:4581:15: warning: initialized field
overwritten [-Woverride-init]
4581 | .arg1_type = ARG_ANYTHING,
| ^~~~~~~~~~~~
kernel/bpf/syscall.c:4581:15: note: (near initialization for
'bpf_btf_find_by_name_kind_proto.<anonymous>.<anonymous>.arg1_type')
kernel/bpf/syscall.c:4582:15: warning: initialized field overwritten [-Woverride-init]
4582 | .arg1_type = ARG_ANYTHING,
| ^~~~~~~~~~~~
kernel/bpf/syscall.c:4582:15: note: (near initialization for
'bpf_btf_find_by_name_kind_proto.<anonymous>.<anonymous>.arg1_type')
vim +4581 kernel/bpf/syscall.c
4575
4576 const struct bpf_func_proto bpf_btf_find_by_name_kind_proto = {
4577 .func = bpf_btf_find_by_name_kind,
4578 .gpl_only = false,
4579 .ret_type = RET_INTEGER,
4580 .arg1_type = ARG_ANYTHING,
4581 .arg1_type = ARG_ANYTHING,
4582 .arg1_type =
ARG_ANYTHING,
4583 };
4584
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org