Re: [PATCH] net: ethernet: stmmac: Do not use unreachable() in ipq806x_gmac_probe()

From: patchwork-bot+netdevbpf
Date: Sat Aug 07 2021 - 04:50:23 EST


Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Fri, 6 Aug 2021 12:13:40 -0700 you wrote:
> When compiling with clang in certain configurations, an objtool warning
> appears:
>
> drivers/net/ethernet/stmicro/stmmac/dwmac-ipq806x.o: warning: objtool:
> ipq806x_gmac_probe() falls through to next function phy_modes()
>
> This happens because the unreachable annotation in the third switch
> statement is not eliminated. The compiler should know that the first
> default case would prevent the second and third from being reached as
> the comment notes but sanitizer options can make it harder for the
> compiler to reason this out.
>
> [...]

Here is the summary with links:
- net: ethernet: stmmac: Do not use unreachable() in ipq806x_gmac_probe()
https://git.kernel.org/netdev/net-next/c/4367355dd909

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html