========== build_clang - FAILED ../drivers/net/virtio_net.c:5888:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/virtio_net.c:5919:9: note: uninitialized use occurs here 5919 | return err; | ^~~ ../drivers/net/virtio_net.c:5888:2: note: remove the 'if' if its condition is always false 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5889 | goto err_free_buffs; | ~~~~~~~~~~~~~~~~~~~ ../drivers/net/virtio_net.c:5849:9: note: initialize the variable 'err' to silence this warning 5849 | int err, size; | ^ | = 0 1 warning generated. ../drivers/net/virtio_net.c:5888:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../drivers/net/virtio_net.c:5919:9: note: uninitialized use occurs here 5919 | return err; | ^~~ ../drivers/net/virtio_net.c:5888:2: note: remove the 'if' if its condition is always false 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5889 | goto err_free_buffs; | ~~~~~~~~~~~~~~~~~~~ ../drivers/net/virtio_net.c:5849:9: note: initialize the variable 'err' to silence this warning 5849 | int err, size; | ^ | = 0 1 warning generated. New errors added --- /tmp/tmp.4IBbGx7eX5 2025-04-29 09:52:35.966854766 -0700 +++ /tmp/tmp.L2xLIReVBI 2025-04-29 09:53:59.838193737 -0700 @@ -0,0 +1,16 @@ +../drivers/net/virtio_net.c:5888:6: warning: variable 'err' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized] + 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +../drivers/net/virtio_net.c:5919:9: note: uninitialized use occurs here + 5919 | return err; + | ^~~ +../drivers/net/virtio_net.c:5888:2: note: remove the 'if' if its condition is always false + 5888 | if (virtqueue_dma_mapping_error(sq->vq, hdr_dma)) + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + 5889 | goto err_free_buffs; + | ~~~~~~~~~~~~~~~~~~~ +../drivers/net/virtio_net.c:5849:9: note: initialize the variable 'err' to silence this warning + 5849 | int err, size; + | ^ + | = 0 +1 warning generated. Per-file breakdown --- /tmp/tmp.gEXt5OKhwR 2025-04-29 09:54:49.344800432 -0700 +++ /tmp/tmp.c3RUVdJjGg 2025-04-29 09:54:49.347800408 -0700 @@ -0,0 +1 @@ + 2 ../drivers/net/virtio_net.c