projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d00c8ee
)
devlink: fix flexible_array.cocci warning
author
Guo Zhengkui
<guozhengkui@vivo.com>
Wed, 3 Nov 2021 12:16:06 +0000
(20:16 +0800)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 4 Nov 2021 23:43:55 +0000
(16:43 -0700)
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>
net/core/devlink.c
patch
|
blob
|
history
diff --git
a/net/core/devlink.c
b/net/core/devlink.c
index 6b5ee862429ebe9d4c33fd07e8483413905ab705..5ba4f9434acda17426f1c2f63fd67d604c363361 100644
(file)
--- 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)