Hello,
New build issue found on stable-rc/linux-5.15.y:
--- variable 'base_clk' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] in drivers/mmc/host/sdhci-brcmstb.o (drivers/mmc/host/sdhci-brcmstb.c) [logspec:kbuild,kbuild.compiler.error] ---
- dashboard: https://d.kernelci.org/i/maestro:eb9b0da83cc077e6176b9903d98f0f78704ac17f - giturl: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git - commit HEAD: 0b4857306c618d2052f6455b90747ef1df364ecd
Log excerpt: ===================================================== drivers/mmc/host/sdhci-brcmstb.c:303:6: error: variable 'base_clk' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] 303 | if (res) | ^~~ drivers/mmc/host/sdhci-brcmstb.c:377:24: note: uninitialized use occurs here 377 | clk_disable_unprepare(base_clk); | ^~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:303:2: note: remove the 'if' if its condition is always false 303 | if (res) | ^~~~~~~~ 304 | goto err; | ~~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:296:6: error: variable 'base_clk' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] 296 | if (IS_ERR(priv->cfg_regs)) { | ^~~~~~~~~~~~~~~~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:377:24: note: uninitialized use occurs here 377 | clk_disable_unprepare(base_clk); | ^~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:296:2: note: remove the 'if' if its condition is always false 296 | if (IS_ERR(priv->cfg_regs)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 297 | res = PTR_ERR(priv->cfg_regs); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 298 | goto err; | ~~~~~~~~~ 299 | } | ~ drivers/mmc/host/sdhci-brcmstb.c:281:6: error: variable 'base_clk' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized] 281 | if (IS_ERR(host)) { | ^~~~~~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:377:24: note: uninitialized use occurs here 377 | clk_disable_unprepare(base_clk); | ^~~~~~~~ drivers/mmc/host/sdhci-brcmstb.c:281:2: note: remove the 'if' if its condition is always false 281 | if (IS_ERR(host)) { | ^~~~~~~~~~~~~~~~~~~ 282 | res = PTR_ERR(host); | ~~~~~~~~~~~~~~~~~~~~ 283 | goto err_clk; | ~~~~~~~~~~~~~ 284 | } | ~ drivers/mmc/host/sdhci-brcmstb.c:260:22: note: initialize the variable 'base_clk' to silence this warning 260 | struct clk *base_clk; | ^ | = NULL 3 errors generated. CC [M] drivers/gpu/drm/drm_gem.o CC [M] drivers/staging/rtl8723bs/hal/odm_EdcaTurboCheck.o CC [M] drivers/net/ethernet/rocker/rocker_tlv.o CC [M] drivers/staging/nvec/nvec.o CC [M] drivers/staging/media/zoran/zoran_card.o
=====================================================
# Builds where the incident occurred:
## defconfig+allmodconfig+CONFIG_FRAME_WARN=2048 on (arm): - compiler: clang-17 - dashboard: https://d.kernelci.org/build/maestro:67f509a66fa43d168f278a2b
#kernelci issue maestro:eb9b0da83cc077e6176b9903d98f0f78704ac17f
Reported-by: kernelci.org bot bot@kernelci.org
-- This is an experimental report format. Please send feedback in! Talk to us at kernelci@lists.linux.dev
Made with love by the KernelCI team - https://kernelci.org
linux-stable-mirror@lists.linaro.org