Hi Cong,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on net-next/master]
url:
https://github.com/0day-ci/linux/commits/Cong-Wang/net_sched-introduce-eB...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git
13bb8429ca985497bfba3a4afa6cd470d15fed10
config: riscv-buildonly-randconfig-r003-20210913 (attached as .config)
compiler: clang version 14.0.0 (
https://github.com/llvm/llvm-project
261cbe98c38f8c1ee1a482fe76511110e790f58a)
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
# install riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
#
https://github.com/0day-ci/linux/commit/11b7d639a3edc1182a3027ae62cc35dcf...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Cong-Wang/net_sched-introduce-eBPF-based-Qdisc/20210914-072015
git checkout 11b7d639a3edc1182a3027ae62cc35dcf0924178
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=riscv
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 >>):
> kernel/bpf/btf.c:4422:2: error: initializer overrides prior
initialization of this subobject [-Werror,-Winitializer-overrides]
0, /*
avoid empty array */
^
include/linux/bpf_types.h:11:1: note: previous initialization is here
BPF_PROG_TYPE(BPF_PROG_TYPE_SCHED_QDISC, tc_cls_act,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/bpf/btf.c:4419:10: note: expanded from macro 'BPF_PROG_TYPE'
[_id] = __ctx_convert##_id,
^~~~~~~~~~~~~~~~~~
<scratch space>:151:1: note: expanded from here
__ctx_convertBPF_PROG_TYPE_SCHED_QDISC
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
vim +4422 kernel/bpf/btf.c
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4396
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4397 #define BPF_MAP_TYPE(_id, _ops)
f2e10bff16a0fd Andrii Nakryiko 2020-04-28 4398 #define BPF_LINK_TYPE(_id, _name)
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4399 static union {
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4400 struct bpf_ctx_convert {
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4401 #define BPF_PROG_TYPE(_id, _name,
prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4402 prog_ctx_type _id##_prog; \
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4403 kern_ctx_type _id##_kern;
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4404 #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4405 #undef BPF_PROG_TYPE
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4406 } *__t;
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4407 /* 't' is written once under
lock. Read many times. */
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4408 const struct btf_type *t;
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4409 } bpf_ctx_convert;
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4410 enum {
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4411 #define BPF_PROG_TYPE(_id, _name,
prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4412 __ctx_convert##_id,
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4413 #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4414 #undef BPF_PROG_TYPE
ce27709b8162e5 Alexei Starovoitov 2019-11-27 4415 __ctx_convert_unused, /* to avoid
empty enum in extreme .config */
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4416 };
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4417 static u8 bpf_ctx_convert_map[] = {
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4418 #define BPF_PROG_TYPE(_id, _name,
prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4419 [_id] = __ctx_convert##_id,
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4420 #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4421 #undef BPF_PROG_TYPE
4c80c7bc583a87 Arnd Bergmann 2019-12-10 @4422 0, /* avoid empty array */
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4423 };
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4424 #undef BPF_MAP_TYPE
f2e10bff16a0fd Andrii Nakryiko 2020-04-28 4425 #undef BPF_LINK_TYPE
91cc1a99740e2e Alexei Starovoitov 2019-11-14 4426
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org