../drivers/net/phy/as21xxx.c:767:14: warning: variable 'val' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/as21xxx.c:775:33: note: uninitialized use occurs here 775 | VEND1_LED_REG_A_EVENT, val); | ^~~ ../drivers/net/phy/as21xxx.c:767:14: note: remove the condition if it is always true 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/as21xxx.c:761:9: note: initialize the variable 'val' to silence this warning 761 | u16 val; | ^ | = 0 1 warning generated. drivers/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() ../drivers/net/phy/as21xxx.c:767:14: warning: variable 'val' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/as21xxx.c:775:33: note: uninitialized use occurs here 775 | VEND1_LED_REG_A_EVENT, val); | ^~~ ../drivers/net/phy/as21xxx.c:767:14: note: remove the condition if it is always true 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/phy/as21xxx.c:761:9: note: initialize the variable 'val' to silence this warning 761 | u16 val; | ^ | = 0 1 warning generated. drivers/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() New errors added --- /tmp/tmp.8wVkPt3tCW 2025-03-23 16:12:20.638125041 -0700 +++ /tmp/tmp.mviYyY9nt2 2025-03-23 16:15:16.679266809 -0700 @@ -0,0 +1,14 @@ +../drivers/net/phy/as21xxx.c:767:14: warning: variable 'val' is used uninitialized whenever 'for' loop exits because its condition is false [-Wsometimes-uninitialized] + 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/phy/as21xxx.c:775:33: note: uninitialized use occurs here + 775 | VEND1_LED_REG_A_EVENT, val); + | ^~~ +../drivers/net/phy/as21xxx.c:767:14: note: remove the condition if it is always true + 767 | for (i = 0; i < ARRAY_SIZE(as21xxx_led_supported_pattern); i++) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/phy/as21xxx.c:761:9: note: initialize the variable 'val' to silence this warning + 761 | u16 val; + | ^ + | = 0 +1 warning generated. Per-file breakdown --- /tmp/tmp.2qUFL1nzKc 2025-03-23 16:15:16.688266713 -0700 +++ /tmp/tmp.8MqxAIiW2W 2025-03-23 16:15:16.691266682 -0700 @@ -0,0 +1 @@ + 2 ../drivers/net/phy/as21xxx.c