CC: [email protected]
BCC: [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:   b61581ae229d8eb9f21f8753be3f4011f7692384
commit: dee872e124e8d5de22b68c58f6f6c3f5e8889160 [537/14268] bpf: Populate 
kfunc BTF ID sets in struct btf
:::::: branch date: 16 hours ago
:::::: commit date: 9 weeks ago
compiler: microblaze-linux-gcc (GCC) 11.2.0

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


cppcheck possible warnings: (new ones prefixed by >>, may not real problems)

                ^
   kernel/bpf/btf.c:4898:38: note: Null pointer addition
    args = (const struct btf_param *)(t + 1);
                                        ^
>> kernel/bpf/btf.c:4584:5: warning: union member 'Anonymous3::__t' is never 
>> used. [unusedStructMember]
    } *__t;
       ^
   kernel/bpf/btf.c:3877:29: warning: Variable 'tag' is not assigned a value. 
[unassignedVariable]
    const struct btf_decl_tag *tag;
                               ^

vim +4584 kernel/bpf/btf.c

91cc1a99740e2e Alexei Starovoitov 2019-11-14  4574  
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4575  #define BPF_MAP_TYPE(_id, 
_ops)
f2e10bff16a0fd Andrii Nakryiko    2020-04-28  4576  #define BPF_LINK_TYPE(_id, 
_name)
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4577  static union {
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4578      struct bpf_ctx_convert {
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4579  #define BPF_PROG_TYPE(_id, 
_name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4580      prog_ctx_type 
_id##_prog; \
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4581      kern_ctx_type 
_id##_kern;
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4582  #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4583  #undef BPF_PROG_TYPE
91cc1a99740e2e Alexei Starovoitov 2019-11-14 @4584      } *__t;
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4585      /* 't' is written once 
under lock. Read many times. */
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4586      const struct btf_type 
*t;
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4587  } bpf_ctx_convert;
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4588  enum {
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4589  #define BPF_PROG_TYPE(_id, 
_name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4590      __ctx_convert##_id,
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4591  #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4592  #undef BPF_PROG_TYPE
ce27709b8162e5 Alexei Starovoitov 2019-11-27  4593      __ctx_convert_unused, 
/* to avoid empty enum in extreme .config */
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4594  };
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4595  static u8 
bpf_ctx_convert_map[] = {
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4596  #define BPF_PROG_TYPE(_id, 
_name, prog_ctx_type, kern_ctx_type) \
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4597      [_id] = 
__ctx_convert##_id,
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4598  #include <linux/bpf_types.h>
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4599  #undef BPF_PROG_TYPE
4c80c7bc583a87 Arnd Bergmann      2019-12-10  4600      0, /* avoid empty array 
*/
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4601  };
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4602  #undef BPF_MAP_TYPE
f2e10bff16a0fd Andrii Nakryiko    2020-04-28  4603  #undef BPF_LINK_TYPE
91cc1a99740e2e Alexei Starovoitov 2019-11-14  4604  

:::::: The code at line 4584 was first introduced by commit
:::::: 91cc1a99740e2ed1d903b5906afb470cc5a07379 bpf: Annotate context types

:::::: TO: Alexei Starovoitov <[email protected]>
:::::: CC: Daniel Borkmann <[email protected]>

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

Reply via email to