Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it. /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:179:2-9: WARNING opportunity for kmemdup /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:2053:11-18: WARNING opportunity for kmemdup warning: line 134: should no_llseek be a metavariable? warning: line 141: should noop_llseek be a metavariable? warning: line 223: should nonseekable_open be a metavariable? warning: line 290: should nonseekable_open be a metavariable? warning: line 338: should nonseekable_open be a metavariable? /home/cocci/testing/net/sctp/protocol.c:820:13-17: ERROR: invalid reference to the index variable of the iterator on line 806 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6194:9-13: ERROR: invalid reference to the index variable of the iterator on line 6186 /home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4096:32-37: ERROR: invalid reference to the index variable of the iterator on line 4050 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6398:1-7: preceding lock on line 6359 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6535:1-7: preceding lock on line 6428 /home/cocci/testing/drivers/net/ethernet/faraday/ftgmac100.c:1373:0-1: preceding lock on line 1338 /home/cocci/testing/drivers/net/ethernet/faraday/ftgmac100.c:1373:0-1: preceding lock on line 1340 /home/cocci/testing/net/unix/af_unix.c:2523:1-7: preceding lock on line 2432 /home/cocci/testing/net/unix/af_unix.c:3349:3-9: preceding lock on line 3345 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4019:1-7: preceding lock on line 3994 /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.h:319:4-17: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.h:498:4-25: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) /home/cocci/testing/drivers/net/ethernet/sfc/siena/ptp.c:1446:1-4: alloc with no test, possible model on line 1461 /home/cocci/testing/drivers/net/ethernet/sfc/ptp.c:1568:1-4: alloc with no test, possible model on line 1582