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/bus/mhi/host/pm.c:1074:57-58: WARNING: atomic_add_unless 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/dsa/mv88e6xxx/chip.c:1568:5-7: ERROR: invalid reference to the index variable of the iterator on line 1537 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1568:38-40: ERROR: invalid reference to the index variable of the iterator on line 1537 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1568:5-7: ERROR: invalid reference to the index variable of the iterator on line 1549 /home/cocci/testing/drivers/net/dsa/mv88e6xxx/chip.c:1568:38-40: ERROR: invalid reference to the index variable of the iterator on line 1549 /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/mvm/time-event.c:417:38-45: ERROR: invalid reference to the index variable of the iterator on line 408 /home/cocci/testing/drivers/net/wireless/ath/ath12k/wmi.c:7102:30-35: ERROR: invalid reference to the index variable of the iterator on line 7084 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3920:3-6: ERROR: invalid reference to the index variable of the iterator on line 3910 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3920:29-32: ERROR: invalid reference to the index variable of the iterator on line 3910 /home/cocci/testing/drivers/net/wireless/ath/ath11k/wmi.c:8971:18-23: ERROR: invalid reference to the index variable of the iterator on line 8953 /home/cocci/testing/net/unix/af_unix.c:2471:1-7: preceding lock on line 2380 /home/cocci/testing/net/unix/af_unix.c:3242:3-9: preceding lock on line 3238 /home/cocci/testing/drivers/net/wireless/realtek/rtw89/phy.c:6406:2-4: WARNING: possible condition with no effect (if == else) /home/cocci/testing/drivers/net/wireless/ath/wil6210/wmi.h:3089: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:1435: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:1698: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/rtlwifi/wifi.h:1284:6-11: 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:113: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/ethernet/8390/etherh.c:282:19-20: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/pcie/trans.c:57:51-52: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/pcie/trans.c:58:55-56: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/intel/iwlwifi/pcie/trans.c:59:58-59: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_mon.c:1244:24-34: Unneeded variable: "hal_status". Return "HAL_RX_MON_STATUS_BUF_DONE" on line 1260 /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/ethernet/xircom/xirc2ps_cs.c:375:29-30: duplicated argument to & or |