New warnings added --- /home/cocci/outputs/results/759861/old-filtered 2024-09-05 21:22:03.339746367 -0700 +++ /home/cocci/outputs/results/759861/new-filtered 2024-09-05 21:22:03.349746436 -0700 @@ -4,0 +5,2 @@ +/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 @@ -9,0 +12 @@ +/home/cocci/testing/kernel/bpf/btf.c:4808:6-7: ERROR: iterator variable bound on line 4806 cannot be NULL @@ -11,5 +14,3 @@ -/home/cocci/testing/kernel/bpf/btf.c:4806:6-7: ERROR: iterator variable bound on line 4804 cannot be NULL -/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/net/netfilter/nf_conntrack_core.c:113:2-8: preceding lock on line 107 +/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 @@ -18,5 +18,0 @@ -/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/kernel/bpf/btf.c:8948:1-7: preceding lock on line 8902 -/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 @@ -26 +22,9 @@ -/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:3349:3-9: preceding lock on line 3345 +/home/cocci/testing/net/netfilter/nf_conntrack_core.c:113:2-8: preceding lock on line 107 +/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/kernel/bpf/btf.c:8950:1-7: preceding lock on line 8904 +/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) Per-file breakdown --- /tmp/tmp.C8CrcKuABJ 2024-09-05 21:22:03.359746501 -0700 +++ /tmp/tmp.zeTKPF5yGp 2024-09-05 21:22:03.359746501 -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