Re: [PATCH net-next] octeontx2: fix -Wnonnull warning

patchwork-bot+netdevbpf
2021-03-24T22:21:10Z

Hello:

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

On Tue, 23 Mar 2021 13:53:29 +0100 you wrote:
> From: Arnd Bergmann <arnd@arndb.de>
>
> When compile testing this driver on a platform on which probe() is
> known to fail at compile time, gcc warns about the cgx_lmactype_string[]
> array being uninitialized:
>
> In function 'strncpy',
> inlined from 'link_status_user_format' at /git/arm-soc/drivers/net/ethernet/marvell/octeontx2/af/cgx.c:838:2,
> inlined from 'cgx_link_change_handler' at /git/arm-soc/drivers/net/ethernet/marvell/octeontx2/af/cgx.c:853:2:
> include/linux/fortify-string.h:27:30: error: argument 2 null where non-null expected [-Werror=nonnull]
> 27 | #define __underlying_strncpy __builtin_strncpy
>
> [...]

Here is the summary with links:
- [net-next] octeontx2: fix -Wnonnull warning
https://git.kernel.org/netdev/net-next/c/b7fbc88692e6

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.