Messages in this thread | | | Date | Mon, 15 Nov 2021 07:17:33 +0800 | From | kernel test robot <> | Subject | [ast-bpf:relo_core 9/19] kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git relo_core head: f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7 commit: 03c354f8c71c2478c421d5552d284e0befb03861 [9/19] bpf: Prepare relo_core.c for kernel duty. config: m68k-allyesconfig (attached as .config) compiler: m68k-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/ast/bpf.git/commit/?id=03c354f8c71c2478c421d5552d284e0befb03861 git remote add ast-bpf https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git git fetch --no-tags ast-bpf relo_core git checkout 03c354f8c71c2478c421d5552d284e0befb03861 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
Note: the ast-bpf/relo_core HEAD f17ef55e5e0bac0d11d3186cd1c468b5a1e047d7 builds fine. It only hurts bisectability.
All errors (new ones prefixed by >>):
kernel/bpf/btf.c: In function 'btf_seq_show': kernel/bpf/btf.c:5888:29: error: function 'btf_seq_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] 5888 | seq_vprintf((struct seq_file *)show->target, fmt, args); | ^~~~~~~~ kernel/bpf/btf.c: In function 'btf_snprintf_show': kernel/bpf/btf.c:5925:9: error: function 'btf_snprintf_show' might be a candidate for 'gnu_printf' format attribute [-Werror=suggest-attribute=format] 5925 | len = vsnprintf(show->target, ssnprintf->len_left, fmt, args); | ^~~ kernel/bpf/btf.c: At top level: >> kernel/bpf/btf.c:6417:5: error: no previous prototype for 'bpf_core_types_are_compat' [-Werror=missing-prototypes] 6417 | int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, | ^~~~~~~~~~~~~~~~~~~~~~~~~ >> kernel/bpf/btf.c:6431:8: error: no previous prototype for 'bpf_core_essential_name_len' [-Werror=missing-prototypes] 6431 | size_t bpf_core_essential_name_len(const char *name) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors
vim +/bpf_core_types_are_compat +6417 kernel/bpf/btf.c
6416 > 6417 int bpf_core_types_are_compat(const struct btf *local_btf, __u32 local_id, 6418 const struct btf *targ_btf, __u32 targ_id) 6419 { 6420 return -EOPNOTSUPP; 6421 } 6422 6423 static bool bpf_core_is_flavor_sep(const char *s) 6424 { 6425 /* check X___Y name pattern, where X and Y are not underscores */ 6426 return s[0] != '_' && /* X */ 6427 s[1] == '_' && s[2] == '_' && s[3] == '_' && /* ___ */ 6428 s[4] != '_'; /* Y */ 6429 } 6430 > 6431 size_t bpf_core_essential_name_len(const char *name)
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |