Re: [REGRESSION] next/master: (build) variable 'id' is uninitialized when used here [-Werror,-Wuninitial...

Randy Dunlap <[email protected]> Thu, 24 Jul 2025 21:28:09 -0700
Newsgroups dev.linux.lists.kernelci,dev.linux.lists.regressions,org.kernel.vger.linux-next
Message-ID <[email protected]>
due to commit 60c060930f481: 

+cc Jason Wang

On 7/24/25 8:59 PM, KernelCI bot wrote:
> 
> 
> 
> 
> Hello,
> 
> New build issue found on next/master:
> 
> ---
>  variable 'id' is uninitialized when used here [-Werror,-Wuninitialized] in drivers/virtio/virtio_ring.o (drivers/virtio/virtio_ring.c) [logspec:kbuild,kbuild.compiler.error]
> ---
> 
> - dashboard: https://d.kernelci.org/i/maestro:33d32f9f3fc65aa1a71269ee14bd5f37d938b6bc
> - giturl: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
> - commit HEAD:  d7af19298454ed155f5cf67201a70f5cf836c842
> - tags: next-20250725
> 
> 
> Log excerpt:
> =====================================================
> drivers/virtio/virtio_ring.c:2113:40: error: variable 'id' is uninitialized when used here [-Werror,-Wuninitialized]
>  2113 |                 BAD_RING(vq, "id %u out of range\n", id);
>       |                                                      ^~
> drivers/virtio/virtio_ring.c:60:32: note: expanded from macro 'BAD_RING'
>    60 |                         "%s:"fmt, (_vq)->vq.name, ##args);      \
>       |                                                     ^~~~
> ./include/linux/dev_printk.h:154:65: note: expanded from macro 'dev_err'
>   154 |         dev_printk_index_wrap(_dev_err, KERN_ERR, dev, dev_fmt(fmt), ##__VA_ARGS__)
>       |                                                                        ^~~~~~~~~~~
> ./include/linux/dev_printk.h:110:23: note: expanded from macro 'dev_printk_index_wrap'
>   110 |                 _p_func(dev, fmt, ##__VA_ARGS__);                       \
>       |                                     ^~~~~~~~~~~
> drivers/virtio/virtio_ring.c:2077:19: note: initialize the variable 'id' to silence this warning
>  2077 |         u16 last_used, id, last_used_idx;
>       |                          ^
>       |                           = 0
> 1 error generated.
> 
> =====================================================
> 
> 
> # Builds where the incident occurred:
> 
> ## x86_64_defconfig on (x86_64):
> - compiler: clang-17
> - dashboard: https://d.kernelci.org/build/maestro:6882f2ab2ce2c1874eede7df
> 
> ## x86_64_defconfig+kselftest+x86-board on (x86_64):
> - compiler: clang-17
> - dashboard: https://d.kernelci.org/build/maestro:6882f2b12ce2c1874eede7f3
> 
> 
> #kernelci issue maestro:33d32f9f3fc65aa1a71269ee14bd5f37d938b6bc
> 
> Reported-by: kernelci.org bot <[email protected]>
> 
> --
> This is an experimental report format. Please send feedback in!
> Talk to us at [email protected]
> 
> Made with love by the KernelCI team - https://kernelci.org
> 

-- 
~Randy