summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorGuo Zhengkui <guozhengkui@vivo.com>2021-11-03 20:16:06 +0800
committerJakub Kicinski <kuba@kernel.org>2021-11-04 16:43:55 -0700
commit96d0c9be432dfd4908e96dde7cab860368a348ab (patch)
tree41cef33c0923b045d502bcf8357c911cf868b743 /net
parentd00c8ee31729248ba40b4ab25cd3b3b580c6f87c (diff)
downloadlinux-96d0c9be432dfd4908e96dde7cab860368a348ab.tar.gz
linux-96d0c9be432dfd4908e96dde7cab860368a348ab.tar.bz2
linux-96d0c9be432dfd4908e96dde7cab860368a348ab.zip
devlink: fix flexible_array.cocci warning
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> Link: https://lore.kernel.org/r/20211103121607.27490-1-guozhengkui@vivo.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net')
-rw-r--r--net/core/devlink.c2
1 files changed, 1 insertions, 1 deletions
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)