[Intel-wired-lan] [PATCH 2/2] ice: replace single-element array used for C struct hack
Bowers, AndrewX
andrewx.bowers at intel.com
Wed Jul 1 16:56:34 UTC 2020
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of
> Tony Nguyen
> Sent: Monday, June 29, 2020 5:28 PM
> To: intel-wired-lan at lists.osuosl.org
> Subject: [Intel-wired-lan] [PATCH 2/2] ice: replace single-element array used
> for C struct hack
>
> From: Bruce Allan <bruce.w.allan at intel.com>
>
> 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.
>
> Additional code cleanups were done near areas affected by this change.
>
> Signed-off-by: Bruce Allan <bruce.w.allan at intel.com>
> Signed-off-by: Tony Nguyen <anthony.l.nguyen at intel.com>
> ---
> .../net/ethernet/intel/ice/ice_adminq_cmd.h | 23 +++---
> drivers/net/ethernet/intel/ice/ice_base.c | 2 +-
> drivers/net/ethernet/intel/ice/ice_common.c | 74 ++++++++++---------
> drivers/net/ethernet/intel/ice/ice_dcb.h | 4 +-
> .../net/ethernet/intel/ice/ice_flex_pipe.c | 35 +++++----
> .../net/ethernet/intel/ice/ice_flex_type.h | 39 +++++-----
> drivers/net/ethernet/intel/ice/ice_lib.c | 2 +-
> drivers/net/ethernet/intel/ice/ice_sched.c | 4 +-
> drivers/net/ethernet/intel/ice/ice_switch.c | 36 ++++-----
> drivers/net/ethernet/intel/ice/ice_xsk.c | 6 +-
> 10 files changed, 111 insertions(+), 114 deletions(-)
Tested-by: Andrew Bowers <andrewx.bowers at intel.com>
More information about the Intel-wired-lan
mailing list