All of lore.kernel.org
 help / color / mirror / Atom feed
* [jpirko-mlxsw:combined_queue 43/101] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:224:54-58: ERROR: invalid reference to the index variable of the iterator on line 213
@ 2022-03-22  9:14 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-03-22  9:14 UTC (permalink / raw)
  To: kbuild

[-- Attachment #1: Type: text/plain, Size: 3152 bytes --]

CC: kbuild-all(a)lists.01.org
BCC: lkp(a)intel.com
CC: linux-kernel(a)vger.kernel.org
TO: Jiri Pirko <jiri@nvidia.com>
CC: Ido Schimmel <idosch@nvidia.com>
CC: Vadim Pasternak <vadimp@nvidia.com>

tree:   https://github.com/jpirko/linux_mlxsw combined_queue
head:   c1e5ded51a9a4bd63e0d6822062e5a1a9f22c125
commit: c52ceadd6badefa7981d0bb2fae995191a145bf8 [43/101] mlxsw: core_linecards: Introduce ops for linecards status change tracking
:::::: branch date: 17 hours ago
:::::: commit date: 17 hours ago
config: i386-randconfig-c001 (https://download.01.org/0day-ci/archive/20220322/202203221746.8Vgl4mPq-lkp(a)intel.com/config)
compiler: gcc-9 (Ubuntu 9.4.0-1ubuntu1~20.04) 9.4.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Julia Lawall <julia.lawall@lip6.fr>


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

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

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-22  9:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-22  9:14 [jpirko-mlxsw:combined_queue 43/101] drivers/net/ethernet/mellanox/mlxsw/core_linecards.c:224:54-58: ERROR: invalid reference to the index variable of the iterator on line 213 kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.