[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111130419.0Kakhm15-lkp@intel.com>
Date: Sat, 13 Nov 2021 04:24:28 +0800
From: kernel test robot <lkp@...el.com>
To: Toke Høiland-Jørgensen <toke@...hat.com>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [toke:xdp-queueing-01 2/9] kernel/bpf/btf.c:4550:9: error:
initialized field overwritten
tree: https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git xdp-queueing-01
head: 7cdc645073a59261514e56e1a4c6d0dac1b24b32
commit: 64155ff31b7e15635ccae5395cf57caa0834faba [2/9] xdp: add dequeue program type for getting packets from a PIFO
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 11.2.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/toke/linux.git/commit/?id=64155ff31b7e15635ccae5395cf57caa0834faba
git remote add toke https://git.kernel.org/pub/scm/linux/kernel/git/toke/linux.git
git fetch --no-tags toke xdp-queueing-01
git checkout 64155ff31b7e15635ccae5395cf57caa0834faba
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=s390
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
All errors (new ones prefixed by >>):
>> kernel/bpf/btf.c:4550:9: error: initialized field overwritten [-Werror=override-init]
4550 | 0, /* avoid empty array */
| ^
kernel/bpf/btf.c:4550:9: note: (near initialization for 'bpf_ctx_convert_map[32]')
kernel/bpf/btf.c: In function 'btf_seq_show':
kernel/bpf/btf.c:5876:29: error: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
5876 | seq_vprintf((struct seq_file *)show->target, fmt, args);
| ^~~~~~~~
kernel/bpf/btf.c: In function 'btf_snprintf_show':
kernel/bpf/btf.c:5913:9: error: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format]
5913 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args);
| ^~~
cc1: all warnings being treated as errors
vim +4550 kernel/bpf/btf.c
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4524
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4525 #define BPF_MAP_TYPE(_id, _ops)
f2e10bff16a0fdd Andrii Nakryiko 2020-04-28 4526 #define BPF_LINK_TYPE(_id, _name)
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4527 static union {
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4528 struct bpf_ctx_convert {
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4529 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4530 prog_ctx_type _id##_prog; \
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4531 kern_ctx_type _id##_kern;
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4532 #include <linux/bpf_types.h>
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4533 #undef BPF_PROG_TYPE
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4534 } *__t;
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4535 /* 't' is written once under lock. Read many times. */
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4536 const struct btf_type *t;
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4537 } bpf_ctx_convert;
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4538 enum {
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4539 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4540 __ctx_convert##_id,
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4541 #include <linux/bpf_types.h>
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4542 #undef BPF_PROG_TYPE
ce27709b8162e5c Alexei Starovoitov 2019-11-27 4543 __ctx_convert_unused, /* to avoid empty enum in extreme .config */
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4544 };
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4545 static u8 bpf_ctx_convert_map[] = {
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4546 #define BPF_PROG_TYPE(_id, _name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4547 [_id] = __ctx_convert##_id,
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4548 #include <linux/bpf_types.h>
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4549 #undef BPF_PROG_TYPE
4c80c7bc583a87d Arnd Bergmann 2019-12-10 @4550 0, /* avoid empty array */
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4551 };
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4552 #undef BPF_MAP_TYPE
f2e10bff16a0fdd Andrii Nakryiko 2020-04-28 4553 #undef BPF_LINK_TYPE
91cc1a99740e2ed Alexei Starovoitov 2019-11-14 4554
:::::: The code at line 4550 was first introduced by commit
:::::: 4c80c7bc583a87ded5f61906f81256b57c795806 bpf: Fix build in minimal configurations, again
:::::: TO: Arnd Bergmann <arnd@...db.de>
:::::: CC: Daniel Borkmann <daniel@...earbox.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (68110 bytes)
Powered by blists - more mailing lists