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/ipa/ipa_interrupt.c:249:2-9: line 249 is redundant because platform_get_irq() already prints an error 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/tun.c:2036:1-7: preceding lock on line 1840 /home/cocci/testing/net/unix/af_unix.c:2530:1-7: preceding lock on line 2439 /home/cocci/testing/net/unix/af_unix.c:3299:3-9: preceding lock on line 3295 /home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:414:12-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/include/linux/mlx5/mlx5_ifc.h:3552:11-19: 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/include/linux/mlx5/mlx5_ifc.h:4616:12-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/include/linux/mlx5/mlx5_ifc.h:5512:12-15: 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/include/linux/mlx5/mlx5_ifc.h:5516:30-33: 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/include/linux/mlx5/mlx5_ifc.h:6181:12-25: 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/include/linux/mlx5/mlx5_ifc.h:6606:12-29: 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/include/linux/mlx5/mlx5_ifc.h:7219:12-16: 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/include/linux/mlx5/mlx5_ifc.h:7249:12-24: 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/include/linux/mlx5/mlx5_ifc.h:7359:12-20: 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/include/linux/mlx5/mlx5_ifc.h:7429:12-15: 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/include/linux/mlx5/mlx5_ifc.h:7476:12-26: 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/include/linux/mlx5/mlx5_ifc.h:10182:12-35: 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/include/linux/mlx5/mlx5_ifc.h:10246:12-34: 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/include/linux/mlx5/mlx5_ifc.h:10327:12-38: 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/include/linux/mlx5/mlx5_ifc.h:10332:12-27: 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/include/linux/mlx5/mlx5_ifc.h:10427:12-26: 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/include/linux/mlx5/mlx5_ifc.h:10530:12-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/include/linux/mlx5/mlx5_ifc.h:10563:12-21: 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/include/linux/mlx5/mlx5_ifc.h:10609:12-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/include/linux/mlx5/mlx5_ifc.h:12663:43-54: 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/stmicro/stmmac/dwmac-imx.c:102:5-8: Unneeded variable: "ret". Return "0" on line 105