net/ice/base: replace single-element array hack
authorQi Zhang <qi.z.zhang@intel.com>
Wed, 26 Aug 2020 06:57:07 +0000 (14:57 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:09 +0000 (18:55 +0200)
commit170d34ac433db52b28398e4de6bfef30bafc0bce
tree59c77286c74e97cc5f3d1fa8b5dc7c1315256a6e
parent3b085e6054fa58fa05823f2f9a3ef8d948309d71
net/ice/base: replace single-element array hack

Convert the pre-C90-extension "C struct hack" method (using a single-
element array at the end of a structure for implementing variable-length
types) to the preferred use of C99 flexible array member.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
drivers/net/ice/base/ice_adminq_cmd.h
drivers/net/ice/base/ice_common.c
drivers/net/ice/base/ice_dcb.h
drivers/net/ice/base/ice_flex_pipe.c
drivers/net/ice/base/ice_flex_type.h
drivers/net/ice/base/ice_sched.c
drivers/net/ice/base/ice_switch.c
drivers/net/ice/base/ice_switch.h
drivers/net/ice/base/ice_type.h
drivers/net/ice/ice_rxtx.c