Re: [PATCH] hinic: use ARRAY_SIZE instead of ARRAY_LEN

From: patchwork-bot+netdevbpf
Date: Mon Nov 15 2021 - 09:21:32 EST


Hello:

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

On Mon, 15 Nov 2021 13:00:10 +0800 you wrote:
> ARRAY_SIZE defined in <linux/kernel.h> is safer than self-defined
> macros to get size of an array such as ARRAY_LEN used here. Because
> ARRAY_SIZE uses __must_be_array(arr) to ensure arr is really an array.
>
> Reported-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx>
> Signed-off-by: Guo Zhengkui <guozhengkui@xxxxxxxx>
>
> [...]

Here is the summary with links:
- hinic: use ARRAY_SIZE instead of ARRAY_LEN
https://git.kernel.org/netdev/net-next/c/9ed941178ce9

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