========== build_clang - FAILED drivers/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() drivers/nvme/target/nvmet.o: warning: objtool: nvmet_ctrl_state_show() falls through to next function __cfi_nvmet_ctrl_host_traddr_open() ../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:90:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 90 | if (adev_id < 0) | ^~~~~~~~~~~ ../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:104:9: note: uninitialized use occurs here 104 | return ret; | ^~~ ../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:90:2: note: remove the 'if' if its condition is always false 90 | if (adev_id < 0) | ^~~~~~~~~~~~~~~~ 91 | goto err_free_adev_list; | ~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:82:9: note: initialize the variable 'ret' to silence this warning 82 | int ret; | ^ | = 0 1 warning generated. New errors added --- /tmp/tmp.NRCuLArCDY 2025-02-24 14:26:22.366425991 -0800 +++ /tmp/tmp.9jk8QeQ5eh 2025-02-24 14:31:12.169439514 -0800 @@ -1,0 +2,16 @@ +../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:90:6: warning: variable 'ret' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 90 | if (adev_id < 0) + | ^~~~~~~~~~~ +../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:104:9: note: uninitialized use occurs here + 104 | return ret; + | ^~~ +../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:90:2: note: remove the 'if' if its condition is always false + 90 | if (adev_id < 0) + | ^~~~~~~~~~~~~~~~ + 91 | goto err_free_adev_list; + | ~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c:82:9: note: initialize the variable 'ret' to silence this warning + 82 | int ret; + | ^ + | = 0 +1 warning generated. Per-file breakdown --- /tmp/tmp.L6oHl4vld0 2025-02-24 14:31:12.175439452 -0800 +++ /tmp/tmp.6sXKzZbOjL 2025-02-24 14:31:12.178439421 -0800 @@ -0,0 +1 @@ + 2 ../drivers/net/ethernet/yunsilicon/xsc/pci/adev.c