CC: [email protected]
CC: Linux Memory Management List <[email protected]>
TO: Xiaoliang Yang <[email protected]>
CC: Vladimir Oltean <[email protected]>
CC: Claudiu Manoil <[email protected]>
CC: Alexandre Belloni <[email protected]>
CC: [email protected]
CC: Andrew Lunn <[email protected]>
CC: Vivien Didelot <[email protected]>
CC: Florian Fainelli <[email protected]>
CC: Jakub Kicinski <[email protected]>
CC: [email protected]

From: kernel test robot <[email protected]>

drivers/net/dsa/ocelot/felix_vsc9959.c:1388:26-33: WARNING use flexible-array 
member instead 
(https://www.kernel.org/doc/html/latest/process/deprecated.html#zero-length-and-one-element-arrays)


 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 <[email protected]>
Reported-by: kernel test robot <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   f81e94e91878bded599cc60f2881cfd50991aeb9
commit: 23ae3a7877718931474684ef4fbbaf1d1511ee84 [2018/3632] net: dsa: felix: 
add stream gate settings for psfp
:::::: branch date: 12 hours ago
:::::: commit date: 7 days ago

Please take the patch only if it's a positive warning. Thanks!

 felix_vsc9959.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/drivers/net/dsa/ocelot/felix_vsc9959.c
+++ b/drivers/net/dsa/ocelot/felix_vsc9959.c
@@ -1385,7 +1385,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 {
_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to