aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/ocelot/felix_vsc9959.c
diff options
context:
space:
mode:
authorkernel test robot <lkp@intel.com>2021-11-27 19:03:20 +0100
committerDavid S. Miller <davem@davemloft.net>2021-11-29 14:38:50 +0000
commitdcad856fe55a6e921e36fb4c57fb6df4bc5a3ce7 (patch)
tree182ad127ad9e1eb88625cc58e2617bb0c9f57772 /drivers/net/dsa/ocelot/felix_vsc9959.c
parentMerge branch 'hns3-cleanups' (diff)
downloadlinux-dev-dcad856fe55a6e921e36fb4c57fb6df4bc5a3ce7.tar.xz
linux-dev-dcad856fe55a6e921e36fb4c57fb6df4bc5a3ce7.zip
net: dsa: felix: fix flexible_array.cocci warnings
Zero-length and one-element arrays are deprecated, see Documentation/process/deprecated.rst Flexible-array members should be used instead. Generated by: scripts/coccinelle/misc/flexible_array.cocci Fixes: 23ae3a787771 ("net: dsa: felix: add stream gate settings for psfp") CC: Xiaoliang Yang <xiaoliang.yang_1@nxp.com> Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: kernel test robot <lkp@intel.com> Signed-off-by: Julia Lawall <julia.lawall@inria.fr> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/dsa/ocelot/felix_vsc9959.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/ocelot/felix_vsc9959.c b/drivers/net/dsa/ocelot/felix_vsc9959.c
index 36f9c2e0e063..9add86eda7e3 100644
--- a/drivers/net/dsa/ocelot/felix_vsc9959.c
+++ b/drivers/net/dsa/ocelot/felix_vsc9959.c
@@ -1392,7 +1392,7 @@ struct felix_stream_gate {
u64 cycletime;
u64 cycletime_ext;
u32 num_entries;
- struct action_gate_entry entries[0];
+ struct action_gate_entry entries[];
};
struct felix_stream_gate_entry {