Please check for false positives in the output before submitting a patch. When using "patch" mode, carefully review the patch before submitting it. 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/dsa/mv88e6xxx/chip.c:1581:5-7: ERROR: invalid reference to the index variable of the iterator on line 1550 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1581:38-40: ERROR: invalid reference to the index variable of the iterator on line 1550 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1581:5-7: ERROR: invalid reference to the index variable of the iterator on line 1562 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1581:38-40: ERROR: invalid reference to the index variable of the iterator on line 1562 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6224:9-13: ERROR: invalid reference to the index variable of the iterator on line 6216 /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_main.c:9346:2-8: preceding lock on line 9326 /home/cocci/testing/net/core/pktgen.c:3240:1-7: preceding lock on line 3233 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6428:1-7: preceding lock on line 6389 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6565:1-7: preceding lock on line 6458 /home/cocci/testing/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:102:5-8: Unneeded variable: "ret". Return "0" on line 105 /home/cocci/testing/net/ipv6/mcast.c:2007:12-21: ERROR: pmc is NULL but dereferenced. /home/cocci/testing/net/ipv4/igmp.c:597:12-21: ERROR: pmc is NULL but dereferenced. /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:577:9-32: duplicated argument to & or | /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_fs.c:577:35-58: duplicated argument to & or |