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/microchip/vcap/vcap_api.c:3515:15-18: ERROR: reference preceded by free on line 3516 /home/cocci/testing/net/core/gro.c:36:25-29: ERROR: invalid reference to the index variable of the iterator on line 32 /home/cocci/testing/net/mac80211/offchannel.c:718:44-47: ERROR: invalid reference to the index variable of the iterator on line 698 /home/cocci/testing/net/sctp/ipv6.c:115:13-17: ERROR: invalid reference to the index variable of the iterator on line 100 /home/cocci/testing/drivers/net/ethernet/microchip/vcap/vcap_api.c:949:4-10: preceding lock on line 946 /home/cocci/testing/drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:120:6-9: 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/rtw88/coex.c:1480:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1483:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1484:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1485:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1488:35-36: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1489:35-36: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1490:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1493:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1494:24-25: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1495:14-15: WARNING: sum of probable bitmasks, consider | /home/cocci/testing/drivers/net/wireless/realtek/rtw88/coex.c:1501:35-36: WARNING: sum of probable bitmasks, consider | /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/microchip/sparx5/sparx5_tc_flower.c:1526:5-8: Unneeded variable: "err". Return "- ENOENT" on line 1541 /home/cocci/testing/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c:6796:30-31: WARNING opportunity for swap() /home/cocci/testing/drivers/net/ethernet/microchip/encx24j600_hw.h:101:15-19: duplicated argument to & or |