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 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/wireless/realtek/rtw89/debug.c:3274:29-32: ERROR: reference preceded by free on line 3267 /home/cocci/testing/drivers/net/wireless/ath/ath12k/wmi.c:7397:30-35: ERROR: invalid reference to the index variable of the iterator on line 7379 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4407:3-6: ERROR: invalid reference to the index variable of the iterator on line 4397 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4407:29-32: ERROR: invalid reference to the index variable of the iterator on line 4397 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6159:9-13: ERROR: invalid reference to the index variable of the iterator on line 6151 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3958:3-6: ERROR: invalid reference to the index variable of the iterator on line 3948 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3958:29-32: ERROR: invalid reference to the index variable of the iterator on line 3948 /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c:471:38-45: ERROR: invalid reference to the index variable of the iterator on line 462 /home/cocci/testing/net/ethtool/ioctl.c:1522:1-7: preceding lock on line 1401 /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/octeontx2/af/rvu_nix.c:6363:1-7: preceding lock on line 6324 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6500:1-7: preceding lock on line 6393 /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/fw/api/rx.h:640:8-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/drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.h:387:4-7: 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/wireless/mediatek/mt76/mt76_connac_mcu.h:409:4-7: 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/wireless/mediatek/mt76/mt76_connac_mcu.h:1724:4-7: 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/wireless/intel/iwlwifi/pcie/internal.h:112:4-12: 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/wireless/realtek/rtw89/pci.c:332:5-8: Unneeded variable: "cnt". Return "1" on line 393