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:1565:5-7: ERROR: invalid reference to the index variable of the iterator on line 1534 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:38-40: ERROR: invalid reference to the index variable of the iterator on line 1534 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:5-7: ERROR: invalid reference to the index variable of the iterator on line 1546 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1565:38-40: ERROR: invalid reference to the index variable of the iterator on line 1546 /home/cocci/testing/net/ncsi/ncsi-manage.c:1918:28-30: ERROR: invalid reference to the index variable of the iterator on line 1911 /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:4474:1-7: preceding lock on line 4376 /home/cocci/testing/net/unix/af_unix.c:2593:1-7: preceding lock on line 2502 /home/cocci/testing/net/unix/af_unix.c:3419:3-9: preceding lock on line 3415 /home/cocci/testing/net/smc/af_smc.c:2564:0-1: preceding lock on line 2492 /home/cocci/testing/drivers/net/ethernet/intel/iavf/iavf_main.c:2264:6-8: WARNING: possible condition with no effect (if == else) /home/cocci/testing/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c:2769:1-7: WARNING: do_div() does a 64-by-32 division, please consider using div64_ul instead. /home/cocci/testing/drivers/net/ethernet/stmicro/stmmac/dwmac-imx.c:104:5-8: Unneeded variable: "ret". Return "0" on line 107 /home/cocci/testing/drivers/net/ethernet/marvell/octeon_ep/octep_rx.c:383:2-3: Unneeded semicolon