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/broadcom/bnxt/bnxt.c:5737:6-25: WARNING: atomic_dec_and_test variation before object free at line 5744. warning: line 140: should noop_llseek be a metavariable? warning: line 222: should nonseekable_open be a metavariable? warning: line 289: should nonseekable_open be a metavariable? warning: line 337: should nonseekable_open be a metavariable? /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:46:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:757:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun_encap.c:792:2-9: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c:687:1-6: ERROR: invalid reference to the index variable of the iterator on line 665 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6272:9-13: ERROR: invalid reference to the index variable of the iterator on line 6264 /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7880:3-8: ERROR: invalid reference to the index variable of the iterator on line 7872 /home/cocci/testing/net/smc/af_smc.c:2559:0-1: preceding lock on line 2487 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6476:1-7: preceding lock on line 6437 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6613:1-7: preceding lock on line 6506 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9346:2-8: preceding lock on line 9326 /home/cocci/testing/drivers/net/ethernet/mscc/ocelot_ptp.c:156:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_long instead. /home/cocci/testing/drivers/net/ethernet/freescale/ucc_geth.h:645:4-8: 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/freescale/gianfar.c:2172:30-31: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ethernet/freescale/gianfar.c:3225:38-39: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/ethernet/freescale/gianfar.c:1758:25-26: WARNING: sum of probable bitmasks, consider |