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: 23ae3a7877
("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>
This commit is contained in:
parent
ff45b48d35
commit
dcad856fe5
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user