[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <165214321153.28308.10729742871458519653.git-patchwork-notify@kernel.org>
Date: Tue, 10 May 2022 00:40:11 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Jesse Brandeburg <jesse.brandeburg@...el.com>
Cc: netdev@...r.kernel.org, davem@...emloft.net, kuba@...nel.org,
alexander.lobakin@...el.com, talgi@...dia.com
Subject: Re: [PATCH net v2] dim: initialize all struct fields
Hello:
This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@...nel.org>:
On Fri, 6 May 2022 18:10:38 -0700 you wrote:
> The W=2 build pointed out that the code wasn't initializing all the
> variables in the dim_cq_moder declarations with the struct initializers.
> The net change here is zero since these structs were already static
> const globals and were initialized with zeros by the compiler, but
> removing compiler warnings has value in and of itself.
>
> lib/dim/net_dim.c: At top level:
> lib/dim/net_dim.c:54:9: warning: missing initializer for field ‘comps’ of ‘const struct dim_cq_moder’ [-Wmissing-field-initializers]
> 54 | NET_DIM_RX_EQE_PROFILES,
> | ^~~~~~~~~~~~~~~~~~~~~~~
> In file included from lib/dim/net_dim.c:6:
> ./include/linux/dim.h:45:13: note: ‘comps’ declared here
> 45 | u16 comps;
> | ^~~~~
>
> [...]
Here is the summary with links:
- [net,v2] dim: initialize all struct fields
https://git.kernel.org/netdev/net/c/ee1444b5e1df
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists