CC: [email protected]
BCC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Jiri Pirko <[email protected]>
CC: Vadim Pasternak <[email protected]>
CC: Ido Schimmel <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   65eb92e4c9f0a962656f131521f4fbc0d24c9d4c
commit: de28976d2650d3cd962035a9fac5eef3c5b1b379 [4752/5346] mlxsw: 
core_linecards: Introduce ops for linecards status change tracking
:::::: branch date: 4 hours ago
:::::: commit date: 21 hours ago
config: i386-randconfig-c001 
(https://download.01.org/0day-ci/archive/20220421/[email protected]/config)
compiler: gcc-11 (Debian 11.2.0-20) 11.2.0

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


cocci warnings: (new ones prefixed by >>)
>> drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:224:54-58: ERROR: 
>> invalid reference to the index variable of the iterator on line 213

vim +224 drivers/net/ethernet/mellanox/mlxsw/core_linecards.c

de28976d2650d3 Jiri Pirko 2022-04-19  201  
de28976d2650d3 Jiri Pirko 2022-04-19  202  void 
mlxsw_linecards_event_ops_unregister(struct mlxsw_core *mlxsw_core,
de28976d2650d3 Jiri Pirko 2022-04-19  203                                       
  struct mlxsw_linecards_event_ops *ops,
de28976d2650d3 Jiri Pirko 2022-04-19  204                                       
  void *priv)
de28976d2650d3 Jiri Pirko 2022-04-19  205  {
de28976d2650d3 Jiri Pirko 2022-04-19  206       struct mlxsw_linecards 
*linecards = mlxsw_core_linecards(mlxsw_core);
de28976d2650d3 Jiri Pirko 2022-04-19  207       struct 
mlxsw_linecards_event_ops_item *item, *tmp;
de28976d2650d3 Jiri Pirko 2022-04-19  208       bool found = false;
de28976d2650d3 Jiri Pirko 2022-04-19  209  
de28976d2650d3 Jiri Pirko 2022-04-19  210       if (!linecards)
de28976d2650d3 Jiri Pirko 2022-04-19  211               return;
de28976d2650d3 Jiri Pirko 2022-04-19  212       
mutex_lock(&linecards->event_ops_list_lock);
de28976d2650d3 Jiri Pirko 2022-04-19 @213       list_for_each_entry_safe(item, 
tmp, &linecards->event_ops_list, list) {
de28976d2650d3 Jiri Pirko 2022-04-19  214               if (item->event_ops == 
ops && item->priv == priv) {
de28976d2650d3 Jiri Pirko 2022-04-19  215                       
list_del(&item->list);
de28976d2650d3 Jiri Pirko 2022-04-19  216                       found = true;
de28976d2650d3 Jiri Pirko 2022-04-19  217                       break;
de28976d2650d3 Jiri Pirko 2022-04-19  218               }
de28976d2650d3 Jiri Pirko 2022-04-19  219       }
de28976d2650d3 Jiri Pirko 2022-04-19  220       
mutex_unlock(&linecards->event_ops_list_lock);
de28976d2650d3 Jiri Pirko 2022-04-19  221  
de28976d2650d3 Jiri Pirko 2022-04-19  222       if (!found)
de28976d2650d3 Jiri Pirko 2022-04-19  223               return;
de28976d2650d3 Jiri Pirko 2022-04-19 @224       
mlxsw_linecards_event_ops_unregister_call(linecards, item);
de28976d2650d3 Jiri Pirko 2022-04-19  225       kfree(item);
de28976d2650d3 Jiri Pirko 2022-04-19  226  }
de28976d2650d3 Jiri Pirko 2022-04-19  227  
EXPORT_SYMBOL(mlxsw_linecards_event_ops_unregister);
de28976d2650d3 Jiri Pirko 2022-04-19  228  

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