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/infiniband/ulp/ipoib/ipoib_main.c:333:2-10: WARNING: NULL check before dev_{put, hold} functions is not needed. /home/cocci/testing/drivers/net/team/team.c:2766:12-16: ERROR: invalid reference to the index variable of the iterator on line 2767 /home/cocci/testing/drivers/net/wireless/ath/ath10k/mac.c:511:22-26: ERROR: invalid reference to the index variable of the iterator on line 497 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3880:3-6: ERROR: invalid reference to the index variable of the iterator on line 3870 /home/cocci/testing/drivers/net/wireless/ath/ath12k/dp_rx.c:3880:29-32: ERROR: invalid reference to the index variable of the iterator on line 3870 /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:7099:30-35: ERROR: invalid reference to the index variable of the iterator on line 7081 /home/cocci/testing/drivers/net/wireless/ath/ath11k/wmi.c:8865:18-23: ERROR: invalid reference to the index variable of the iterator on line 8847 /home/cocci/testing/drivers/net/tun.c:2037:1-7: preceding lock on line 1841 /home/cocci/testing/drivers/net/ethernet/intel/ice/ice_main.c:9104:2-8: preceding lock on line 9084 /home/cocci/testing/net/netfilter/x_tables.c:1246:3-9: preceding lock on line 1243 /home/cocci/testing/net/netfilter/x_tables.c:1273:3-9: preceding lock on line 1243 /home/cocci/testing/net/netfilter/x_tables.c:1273:3-9: preceding lock on line 1266 /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/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/rtl8xxxu/rtl8xxxu_core.c:6792:30-31: WARNING opportunity for swap()