CC: [email protected]
BCC: [email protected]
CC: [email protected]
TO: Tobias Waldekranz <[email protected]>
CC: Vladimir Oltean <[email protected]>
CC: Grygorii Strashko <[email protected]>
CC: Florian Fainelli <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 
master
head:   b2d229d4ddb17db541098b83524d901257e93845
commit: f7cf972f9375388838b0fbdaa007ce8494646990 net: bridge: disambiguate 
offload_fwd_mark
date:   9 months ago
:::::: branch date: 33 hours ago
:::::: commit date: 9 months ago
compiler: or1k-linux-gcc (GCC) 11.2.0
reproduce (cppcheck warning):
        # apt-get install cppcheck
        git checkout f7cf972f9375388838b0fbdaa007ce8494646990
        cppcheck --quiet --enable=style,performance,portability --template=gcc 
FILE

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)

>> net/bridge/br_switchdev.c:18:14: warning: Uninitialized variable: p->hwdom 
>> [uninitvar]
      return p->hwdom;
                ^

vim +18 net/bridge/br_switchdev.c

6bc506b4fb065e Ido Schimmel      2016-08-25  10  
f7cf972f937538 Tobias Waldekranz 2021-07-21  11  static int 
br_switchdev_hwdom_get(struct net_bridge *br, struct net_device *dev)
6bc506b4fb065e Ido Schimmel      2016-08-25  12  {
6bc506b4fb065e Ido Schimmel      2016-08-25  13         struct net_bridge_port 
*p;
6bc506b4fb065e Ido Schimmel      2016-08-25  14  
6bc506b4fb065e Ido Schimmel      2016-08-25  15         /* dev is yet to be 
added to the port list. */
6bc506b4fb065e Ido Schimmel      2016-08-25  16         list_for_each_entry(p, 
&br->port_list, list) {
bccb30254a4a02 Florian Fainelli  2019-02-06  17                 if 
(netdev_port_same_parent_id(dev, p->dev))
f7cf972f937538 Tobias Waldekranz 2021-07-21 @18                         return 
p->hwdom;
6bc506b4fb065e Ido Schimmel      2016-08-25  19         }
6bc506b4fb065e Ido Schimmel      2016-08-25  20  
f7cf972f937538 Tobias Waldekranz 2021-07-21  21         return ++br->last_hwdom;
6bc506b4fb065e Ido Schimmel      2016-08-25  22  }
6bc506b4fb065e Ido Schimmel      2016-08-25  23  

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