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:5585:6-25: WARNING: atomic_dec_and_test variation before object free at line 5592. 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/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6186:9-13: ERROR: invalid reference to the index variable of the iterator on line 6178 /home/cocci/testing/net/core/gro.c:36:25-29: ERROR: invalid reference to the index variable of the iterator on line 32 /home/cocci/testing/net/core/pktgen.c:3240:1-7: preceding lock on line 3233 /home/cocci/testing/drivers/net/ethernet/faraday/ftgmac100.c:1363:0-1: preceding lock on line 1328 /home/cocci/testing/drivers/net/ethernet/faraday/ftgmac100.c:1363:0-1: preceding lock on line 1330 /home/cocci/testing/net/ipv4/inet_connection_sock.c:424:1-7: preceding lock on line 386 /home/cocci/testing/net/ipv4/inet_connection_sock.c:608:1-7: preceding lock on line 571 /home/cocci/testing/net/ethtool/ioctl.c:1599:1-7: preceding lock on line 1462 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6390:1-7: preceding lock on line 6351 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6527:1-7: preceding lock on line 6420 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4487:1-7: preceding lock on line 4389 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:2782:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. /home/cocci/testing/drivers/net/hyperv/hyperv_net.h:467:38-46: 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/hyperv/hyperv_net.h:827:22-28: 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/net/ipv6/mcast.c:2007:12-21: ERROR: pmc is NULL but dereferenced. /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:578:9-32: duplicated argument to & or | /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:578:35-58: duplicated argument to & or |