diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-04-24 10:50:00 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-05-04 11:30:15 -0500 |
commit | 1e6e9d0f4859ec698d55381ea26f4136eff3afe1 (patch) | |
tree | e16be817042e5f227c3ff3bfa5dc97df5ed0ff00 /include/uapi/linux/net_dropmon.h | |
parent | 0e698dfa282211e414076f9dc7e83c1c288314fd (diff) | |
download | linux-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.tar.gz linux-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.tar.bz2 linux-1e6e9d0f4859ec698d55381ea26f4136eff3afe1.zip |
uapi: revert flexible-array conversions
These structures can get embedded in other structures in user-space
and cause all sorts of warnings and problems. So, we better don't take
any chances and keep the zero-length arrays in place for now.
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'include/uapi/linux/net_dropmon.h')
-rw-r--r-- | include/uapi/linux/net_dropmon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/net_dropmon.h b/include/uapi/linux/net_dropmon.h index 67e31f329190..66048cc5d7b3 100644 --- a/include/uapi/linux/net_dropmon.h +++ b/include/uapi/linux/net_dropmon.h @@ -29,12 +29,12 @@ struct net_dm_config_entry { struct net_dm_config_msg { __u32 entries; - struct net_dm_config_entry options[]; + struct net_dm_config_entry options[0]; }; struct net_dm_alert_msg { __u32 entries; - struct net_dm_drop_point points[]; + struct net_dm_drop_point points[0]; }; struct net_dm_user_msg { |