diff options
author | kernel test robot <lkp@intel.com> | 2021-11-27 19:03:20 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-11-29 14:38:50 +0000 |
commit | dcad856fe55a6e921e36fb4c57fb6df4bc5a3ce7 (patch) | |
tree | 182ad127ad9e1eb88625cc58e2617bb0c9f57772 | |
parent | ff45b48d35078a0da13c130be81cbb9710f06ae7 (diff) |
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>
-rw-r--r-- | drivers/net/dsa/ocelot/felix_vsc9959.c | 2 |
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 { |