CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Song Liu <[email protected]>
CC: Alexei Starovoitov <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   e729dbe8ea1c6145ae7b9efd6a00a5613746d3b0
commit: d19ddb476a539fd78ad1028ae13bb38506286931 bpf: Introduce btf_tracing_ids
date:   5 months ago
:::::: branch date: 2 hours ago
:::::: commit date: 5 months ago
compiler: or1k-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 warnings: (new ones prefixed by >>)
>> net/core/rtnetlink.c:5220:9: warning: Local variable 'err' shadows outer 
>> variable [shadowVariable]
       int err;
           ^
   net/core/rtnetlink.c:5120:6: note: Shadowed declaration
    int err;
        ^
   net/core/rtnetlink.c:5220:9: note: Shadow variable
       int err;
           ^

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

>> net/core/rtnetlink.c:4846:6: warning: Redundant initialization for 'err'. 
>> The initialized value is overwritten before it is read. 
>> [redundantInitialization]
    err = dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0, 0);
        ^
   net/core/rtnetlink.c:4835:10: note: err is initialized
    int err = -EOPNOTSUPP;
            ^
   net/core/rtnetlink.c:4846:6: note: err is overwritten
    err = dev->netdev_ops->ndo_bridge_getlink(skb, 0, 0, dev, 0, 0);
        ^
>> net/core/rtnetlink.c:2238:52: warning: Parameter 'tb' can be declared with 
>> const [constParameter]
   static int rtnl_ensure_unique_netns(struct nlattr *tb[],
                                                      ^
--
>> kernel/bpf/btf.c:6357:1: warning: There is an unknown macro here somewhere. 
>> Configuration is required. If BTF_ID_LIST_GLOBAL is a macro then please 
>> configure it. [unknownMacro]
   BTF_ID_LIST_GLOBAL(btf_tracing_ids, MAX_BTF_TRACING_TYPE)
   ^
--
>> net/core/dev.c:1651:2: warning: There is an unknown macro here somewhere. 
>> Configuration is required. If netdev_for_each_lower_dev is a macro then 
>> please configure it. [unknownMacro]
    netdev_for_each_lower_dev(dev, lower_dev, iter)
    ^

vim +6357 kernel/bpf/btf.c

eb529c5b10b940 Daniel Xu               2021-08-25  6356  
d19ddb476a539f Song Liu                2021-11-12 @6357  
BTF_ID_LIST_GLOBAL(btf_tracing_ids, MAX_BTF_TRACING_TYPE)
d19ddb476a539f Song Liu                2021-11-12  6358  #define 
BTF_TRACING_TYPE(name, type) BTF_ID(struct, type)
d19ddb476a539f Song Liu                2021-11-12  6359  BTF_TRACING_TYPE_xxx
d19ddb476a539f Song Liu                2021-11-12  6360  #undef BTF_TRACING_TYPE
14f267d95fe4b0 Kumar Kartikeya Dwivedi 2021-10-02  6361  

-- 
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