Re: [PATCH net] net: qede: Initialize qede_ll_ops with designated initializer

From
patchwork-bot+netdevbpf@kernel.org
Date
2025-05-09 02:29:49
Also in
lkml, llvm, stable
Reply to
Nathan Chancellor, 2025-05-07
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Wed, 07 May 2025 21:47:45 +0100 you wrote:
After a recent change [1] in clang's randstruct implementation to
randomize structures that only contain function pointers, there is an
error because qede_ll_ops get randomized but does not use a designated
initializer for the first member:

  drivers/net/ethernet/qlogic/qede/qede_main.c:206:2: error: a randomized struct can only be initialized with a designated initializer
    206 |         {
        |         ^

[...]
Here is the summary with links:
  - [net] net: qede: Initialize qede_ll_ops with designated initializer
    https://git.kernel.org/netdev/net/c/6b3ab7f2cbfa

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

Thread (3 messages) 3 messages, 3 authors, last reply 2025-05-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help