Following build warnings / errors noticed while building allmodconfig for arm64
with clang-16 on Linux next-20230414.
Reported-by: Linux Kernel Functional Testing <[email protected]>
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c:298:6: error: variable
'ret' is uninitialized when used here [-Werror,-Wuninitialized]
if (ret)
^~~
drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c:216:12: note: initialize
the variable 'ret' to silence this warning
int i, ret;
^
= 0
1 error generated.
--
Linaro LKFT
https://lkft.linaro.org
On Fri, Apr 14, 2023 at 03:14:27PM +0530, Naresh Kamboju wrote:
> Following build warnings / errors noticed while building allmodconfig for arm64
> with clang-16 on Linux next-20230414.
>
> Reported-by: Linux Kernel Functional Testing <[email protected]>
>
> drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c:298:6: error: variable
> 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
> if (ret)
> ^~~
> drivers/phy/mediatek/phy-mtk-hdmi-mt8195.c:216:12: note: initialize
> the variable 'ret' to silence this warning
> int i, ret;
> ^
> = 0
> 1 error generated.
I believe a fix for this has been submitted but not yet applied.
- [PATCH v2 1/2] phy: mediatek: hdmi: mt8195: fix uninitialized variable usage in pll_calc
Link: https://lore.kernel.org/all/20230413-fixes-for-mt8195-hdmi-phy-v2-1-bbad62e64321@baylibre.com/