Re: [PATCH V2] net/switchdev: use struct_size over open coded arithmetic

From: patchwork-bot+netdevbpf
Date: Thu Feb 10 2022 - 10:40:18 EST


Hello:

This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@xxxxxxxxxxxxx>:

On Thu, 10 Feb 2022 06:10:08 +0000 you wrote:
> From: Minghao Chi (CGEL ZTE) <chi.minghao@xxxxxxxxxx>
>
> Replace zero-length array with flexible-array member and make use
> of the struct_size() helper in kmalloc(). For example:
>
> struct switchdev_deferred_item {
> ...
> unsigned long data[];
> };
>
> [...]

Here is the summary with links:
- [V2] net/switchdev: use struct_size over open coded arithmetic
https://git.kernel.org/netdev/net-next/c/d8c2858181cc

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