New warnings added --- /home/cocci/outputs/results/498501/old-filtered 2024-03-08 08:37:13.207317774 -0800 +++ /home/cocci/outputs/results/498501/new-filtered 2024-03-08 08:37:13.217317826 -0800 @@ -14,6 +14,5 @@ -/home/cocci/testing/drivers/net/phy/mdio_bus.c:469:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 499. -/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/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c:770:1-8: ERROR: invalid reference to the index variable of the iterator on line 740 -/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/net/smc/af_smc.c:2556:0-1: preceding lock on line 2491 -/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:3605:1-7: preceding lock on line 3580 +/home/cocci/testing/drivers/net/phy/mdio_bus.c:467:1-33: WARNING: Function "for_each_available_child_of_node" should have of_node_put() before return around line 497. +/home/cocci/testing/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ktls_rx.c:768:1-8: ERROR: invalid reference to the index variable of the iterator on line 738 +/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/ath11k/wmi.c:8866:18-23: ERROR: invalid reference to the index variable of the iterator on line 8848 +/home/cocci/testing/drivers/net/ethernet/intel/ice/ice_ethtool.c:3687:1-7: preceding lock on line 3662 @@ -20,0 +20,6 @@ +/home/cocci/testing/net/smc/af_smc.c:2573:0-1: preceding lock on line 2500 +/home/cocci/testing/drivers/net/wireless/realtek/rtw89/rtw8922a.c:2235:2-4: WARNING: possible condition with no effect (if == else) +/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) @@ -21,0 +27 @@ +/home/cocci/testing/drivers/net/wireless/mediatek/mt76/mt7996/mcu.h:451:4-10: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) @@ -36,12 +42,7 @@ -/home/cocci/testing/include/linux/mlx5/mlx5_ifc.h:10329:12-38: 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/include/linux/mlx5/mlx5_ifc.h:10334:12-27: 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/include/linux/mlx5/mlx5_ifc.h:10429:12-26: 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/include/linux/mlx5/mlx5_ifc.h:10532:12-17: 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/include/linux/mlx5/mlx5_ifc.h:10565:12-21: 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/include/linux/mlx5/mlx5_ifc.h:10611:12-17: 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/include/linux/mlx5/mlx5_ifc.h:12665:43-54: 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:1431: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:1694: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/mt7996/mcu.h:451:4-10: 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/include/linux/mlx5/mlx5_ifc.h:10331:12-38: 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/include/linux/mlx5/mlx5_ifc.h:10336:12-27: 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/include/linux/mlx5/mlx5_ifc.h:10431:12-26: 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/include/linux/mlx5/mlx5_ifc.h:10534:12-17: 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/include/linux/mlx5/mlx5_ifc.h:10567:12-21: 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/include/linux/mlx5/mlx5_ifc.h:10613:12-17: 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/include/linux/mlx5/mlx5_ifc.h:12667:43-54: WARNING use flexible-array member instead (https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays) @@ -56 +56,0 @@ -/home/cocci/testing/drivers/net/wireless/realtek/rtw89/pci.c:304:5-8: Unneeded variable: "cnt". Return "1" on line 365 @@ -57,0 +58 @@ +/home/cocci/testing/drivers/net/wireless/realtek/rtw89/pci.c:304:5-8: Unneeded variable: "cnt". Return "1" on line 365 Per-file breakdown