CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Kumar Kartikeya Dwivedi <[email protected]>
CC: Alexei Starovoitov <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   b605fdc54c2b28c30ef06d9db99282d8a32ae4be
commit: dee872e124e8d5de22b68c58f6f6c3f5e8889160 [648/2855] bpf: Populate kfunc 
BTF ID sets in struct btf
:::::: branch date: 24 hours ago
:::::: commit date: 10 days ago
config: powerpc64-randconfig-m031-20220125 
(https://download.01.org/0day-ci/archive/20220129/[email protected]/config)
compiler: powerpc64-linux-gcc (GCC) 11.2.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>
Reported-by: Dan Carpenter <[email protected]>

smatch warnings:
kernel/bpf/btf.c:6613 btf_populate_kfunc_set() error: uninitialized symbol 
'ret'.

vim +/ret +6613 kernel/bpf/btf.c

dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6598  
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6599  static int 
btf_populate_kfunc_set(struct btf *btf, enum btf_kfunc_hook hook,
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6600                         
          const struct btf_kfunc_id_set *kset)
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6601  {
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6602         bool 
vmlinux_set = !btf_is_module(btf);
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6603         int type, ret;
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6604  
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6605         for (type = 0; 
type < ARRAY_SIZE(kset->sets); type++) {
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6606                 if 
(!kset->sets[type])
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6607                         
continue;
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6608  
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6609                 ret = 
__btf_populate_kfunc_set(btf, hook, type, kset->sets[type], vmlinux_set);
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6610                 if (ret)
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6611                         
break;
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6612         }
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14 @6613         return ret;
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6614  }
dee872e124e8d5 Kumar Kartikeya Dwivedi 2022-01-14  6615  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to