Re: [REGRESSION] mainline/master: (build) variable 'old_size' is uninitialized when used here [-Werror,-Wuni...

Thorsten Leemhuis <[email protected]>
Newsgroups dev.linux.lists.regressions,dev.linux.lists.kernelci
Message-ID <[email protected]>
On 5/18/26 21:59, KernelCI bot wrote:
> 
> 
> 
> 
> Hello,
> 
> New build issue found on mainline/master:
> 
> ---
>  variable 'old_size' is uninitialized when used here [-Werror,-Wuninitialized] in fs/smb/client/cifsfs.o (fs/smb/client/cifsfs.c) [logspec:kbuild,kbuild.compiler.error]
> ---

I guess this is fixed by
https://git.kernel.org/torvalds/c/8cf8b5ae8e093132b0dce0a932af10c9ef077936
in mainline

> - dashboard: https://d.kernelci.org/i/maestro:8fef554699226f88449edfc56be31812d3edd327
> - giturl: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> - commit HEAD:  4bf5d3da79c48e1df4bab82c9680c53adeff7820
> 
> 
> Please include the KernelCI tag when submitting a fix:
> 
> Reported-by: kernelci.org bot <[email protected]>
> 
> 
> Log excerpt:
> =====================================================
> /tmp/kci/linux/fs/smb/client/cifsfs.c:1390:29: error: variable 'old_size' is uninitialized when used here [-Werror,-Wuninitialized]
>  1390 |                 if (rc == 0 && new_size > old_size) {
>       |                                           ^~~~~~~~
> /tmp/kci/linux/fs/smb/client/cifsfs.c:1307:37: note: initialize the variable 'old_size' to silence this warning
>  1307 |         unsigned long long i_size, old_size, new_size, zero_point;
>       |                                            ^
>       |                                             = 0
> /tmp/kci/linux/fs/smb/client/cifsfs.c:1375:13: error: variable 'zero_point' is uninitialized when used here [-Werror,-Wuninitialized]
>  1375 |         if (fend > zero_point)
>       |                    ^~~~~~~~~~
> /tmp/kci/linux/fs/smb/client/cifsfs.c:1307:59: note: initialize the variable 'zero_point' to silence this warning
>  1307 |         unsigned long long i_size, old_size, new_size, zero_point;
>       |                                                                  ^
>       |                                                                   = 0
> 2 errors generated.
> 
> =====================================================
> 
> 
> # Builds where the incident occurred:
> 
> ## defconfig+allmodconfig+CONFIG_FRAME_WARN=2048 on (arm):
> - compiler: clang-21
> - config: None
> - dashboard: https://d.kernelci.org/build/maestro:6a0b542b744d1c1da0198902
> 
> 
> #kernelci issue maestro:8fef554699226f88449edfc56be31812d3edd327
> 
> --
> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.