[PATCH 1/2] clk: k3: pll: initialize success flag in ti_pll_wait_for_lock
Sascha Hauer
s.hauer at pengutronix.de
Wed Sep 2 01:26:52 PDT 2026
On Mon, 31 Aug 2026 16:44:18 +0200, Ahmad Fatoum wrote:
> When built with clang, we run into following warning (turned error with
> CONFIG_WERROR):
>
> drivers/clk/k3/pll.c:100:14: error: variable 'success' is used uninitialized
> whenever 'for' loop exits because its condition is false [-Werror,-Wsometimes-uninitialized]
>
> Initialize the variable to fix.
>
> [...]
Applied, thanks!
[1/2] clk: k3: pll: initialize success flag in ti_pll_wait_for_lock
https://git.pengutronix.de/cgit/barebox/commit/?id=ac2df0593b88 (link may not be stable)
[2/2] ARM: i.MX9: initialize max_speed in imx9_cpu_speed_grade_hz
https://git.pengutronix.de/cgit/barebox/commit/?id=8b828f6417fc (link may not be stable)
Best regards,
--
Sascha Hauer <s.hauer at pengutronix.de>
More information about the barebox
mailing list