next: fs/quota/quota_tree.c:674:8: error: variable 'blk' is uninitialized when used here [-Werror,-Wuninitialized]
From: Naresh Kamboju
Date: Mon Feb 12 2024 - 12:59:07 EST
I encountered the following build warnings/errors while compiling the x86_64
kernel on Linux next-20240212 tag with clang toolchain.
Reported-by: Linux Kernel Functional Testing <lkft@xxxxxxxxxx>
fs/quota/quota_tree.c:674:8: error: variable 'blk' is uninitialized
when used here [-Werror,-Wuninitialized]
674 | blk);
| ^~~
include/linux/quotaops .h:34:41: note: expanded from macro 'quota_error'
34 | __quota_error((sb), __func__, fmt , ## args)
| ^~~~
fs/quota/quota_tree.c:666:10: note: initialize the variable 'blk' to
silence this warning
666 | uint blk;
| ^
| = 0
1 error generated.
Links:
- https://storage.tuxsuite.com/public/linaro/lkft/builds/2cFjnmDh1oofs8YfpPEBSMDvU9R/
As per the other reports, this has been fixed in Jan's tree.
https://lore.kernel.org/all/20240212131615.6jvnwweivkydv3j7@quack3/
--
Linaro LKFT
https://lkft.linaro.org