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/ethernet/intel/i40e/i40e_main.c:15812:2-8: ERROR: missing iounmap; ioremap on line 15659 and execution via conditional on line 15811 /home/cocci/testing/drivers/net/wireless/realtek/rtw89/debug.c:3253:29-32: ERROR: reference preceded by free on line 3246 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6155:9-13: ERROR: invalid reference to the index variable of the iterator on line 6147 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4408:3-6: ERROR: invalid reference to the index variable of the iterator on line 4398 /home/cocci/testing/drivers/net/wireless/ath/ath11k/dp_rx.c:4408:29-32: ERROR: invalid reference to the index variable of the iterator on line 4398 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3926:3-6: ERROR: invalid reference to the index variable of the iterator on line 3916 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3926:29-32: ERROR: invalid reference to the index variable of the iterator on line 3916 /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c:469:38-45: ERROR: invalid reference to the index variable of the iterator on line 460 /home/cocci/testing/drivers/net/wireless/ath/ath12k/wmi.c:7278:30-35: ERROR: invalid reference to the index variable of the iterator on line 7260 /home/cocci/testing/drivers/net/ethernet/intel/igb/igb_main.c:7862:3-8: ERROR: invalid reference to the index variable of the iterator on line 7854 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6359:1-7: preceding lock on line 6320 /home/cocci/testing/drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c:6496:1-7: preceding lock on line 6389 /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/intel/ice/ice_main.c:9300:2-8: preceding lock on line 9280 /home/cocci/testing/drivers/net/ethernet/intel/iavf/iavf_main.c:2239:6-8: WARNING: possible condition with no effect (if == else) /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/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/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/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:1446: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:1713: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/realtek/rtw89/pci.c:329:5-8: Unneeded variable: "cnt". Return "1" on line 390 /home/cocci/testing/drivers/net/wireless/realtek/rtl8xxxu/core.c:6749:30-31: WARNING opportunity for swap() /home/cocci/testing/drivers/net/wireless/ath/ath12k/mac.c:8318:16-26: ERROR: sband is NULL but dereferenced.