netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* next: allmodconfig: phy-mtk-hdmi-mt8195.c:298:6: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
@ 2023-04-14  9:44 Naresh Kamboju
  2023-04-18 14:17 ` Simon Horman
  0 siblings, 1 reply; 2+ messages in thread
From: Naresh Kamboju @ 2023-04-14  9:44 UTC (permalink / raw)
  To: open list, lkft-triage, llvm, linux-phy,
	moderated list:ARM/Mediatek SoC...
  Cc: Guillaume Ranquet, Vinod Koul, Kishon, AngeloGioacchino Del Regno,
	Netdev, chunfeng.yun

Following build warnings / errors noticed while building allmodconfig for arm64
with clang-16 on Linux next-20230414.

Reported-by: Linux Kernel Functional Testing <lkft@linaro.org>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: next: allmodconfig: phy-mtk-hdmi-mt8195.c:298:6: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized]
  2023-04-14  9:44 next: allmodconfig: phy-mtk-hdmi-mt8195.c:298:6: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju
@ 2023-04-18 14:17 ` Simon Horman
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Horman @ 2023-04-18 14:17 UTC (permalink / raw)
  To: Naresh Kamboju
  Cc: open list, lkft-triage, llvm, linux-phy,
	moderated list:ARM/Mediatek SoC..., Guillaume Ranquet, Vinod Koul,
	Kishon, AngeloGioacchino Del Regno, Netdev, chunfeng.yun

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 <lkft@linaro.org>
> 
> 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/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-04-18 14:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-14  9:44 next: allmodconfig: phy-mtk-hdmi-mt8195.c:298:6: error: variable 'ret' is uninitialized when used here [-Werror,-Wuninitialized] Naresh Kamboju
2023-04-18 14:17 ` Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).