New warnings added --- /home/cocci/outputs/results/759501/old-filtered 2024-09-05 15:16:08.171289919 -0700 +++ /home/cocci/outputs/results/759501/new-filtered 2024-09-05 15:16:08.191290069 -0700 @@ -4,0 +5,2 @@ +/home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c:2053:11-18: WARNING opportunity for kmemdup +/home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c:179:2-9: WARNING opportunity for kmemdup @@ -10,6 +12,4 @@ -/home/cocci/testing/net/sctp/protocol.c:819:13-17: ERROR: invalid reference to the index variable of the iterator on line 805 -/home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6159:9-13: ERROR: invalid reference to the index variable of the iterator on line 6151 -/home/cocci/testing/drivers/net/ethernet/intel/i40e/i40e_ethtool.c:4100:32-37: ERROR: invalid reference to the index variable of the iterator on line 4054 -/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:4021:1-7: preceding lock on line 3996 -/home/cocci/testing/net/unix/af_unix.c:2523:1-7: preceding lock on line 2432 -/home/cocci/testing/net/unix/af_unix.c:3344:3-9: preceding lock on line 3340 +/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/intel/ice/ice_ethtool.c:4019:1-7: preceding lock on line 3994 @@ -18,2 +18,6 @@ -/home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6363:1-7: preceding lock on line 6324 -/home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6500:1-7: preceding lock on line 6393 +/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/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/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) Per-file breakdown --- /tmp/tmp.dZEF3UcDdw 2024-09-05 15:16:08.201290146 -0700 +++ /tmp/tmp.c2jQtrYAQV 2024-09-05 15:16:08.201290146 -0700 @@ -4,0 +5,3 @@ + 1 /drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.c + 2 /drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_definer.h + 1 /drivers/net/ethernet/mellanox/mlx5/core/steering/hws/mlx5hws_pat_arg.c