All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] devlink: fix flexible_array.cocci warning
@ 2021-11-03 12:16 Guo Zhengkui
  2021-11-05  0:00 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Guo Zhengkui @ 2021-11-03 12:16 UTC (permalink / raw)
  To: Jiri Pirko, David S. Miller, Jakub Kicinski, netdev, linux-kernel
  Cc: kernel, Guo Zhengkui

Fix following coccicheck warning:
./net/core/devlink.c:69:6-10: WARNING use flexible-array member instead

Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
---
 net/core/devlink.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/core/devlink.c b/net/core/devlink.c
index 6b5ee862429e..5ba4f9434acd 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -66,7 +66,7 @@ struct devlink {
 	u8 reload_failed:1;
 	refcount_t refcount;
 	struct completion comp;
-	char priv[0] __aligned(NETDEV_ALIGN);
+	char priv[] __aligned(NETDEV_ALIGN);
 };
 
 void *devlink_priv(struct devlink *devlink)
-- 
2.20.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] devlink: fix flexible_array.cocci warning
  2021-11-03 12:16 [PATCH] devlink: fix flexible_array.cocci warning Guo Zhengkui
@ 2021-11-05  0:00 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-11-05  0:00 UTC (permalink / raw)
  To: Guo Zhengkui; +Cc: jiri, davem, kuba, netdev, linux-kernel, kernel

Hello:

This patch was applied to netdev/net.git (master)
by Jakub Kicinski <kuba@kernel.org>:

On Wed,  3 Nov 2021 20:16:06 +0800 you wrote:
> Fix following coccicheck warning:
> ./net/core/devlink.c:69:6-10: WARNING use flexible-array member instead
> 
> Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
> ---
>  net/core/devlink.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Here is the summary with links:
  - devlink: fix flexible_array.cocci warning
    https://git.kernel.org/netdev/net/c/96d0c9be432d

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-05  0:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-03 12:16 [PATCH] devlink: fix flexible_array.cocci warning Guo Zhengkui
2021-11-05  0:00 ` patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.