Skip to content

Commit fbfa49f

Browse files
GustavoARSilvaanguy11
authored andcommitted
i40e: Replace one-element array with flex-array member in struct i40e_profile_segment
One-element and zero-length arrays are deprecated. So, replace one-element array in struct i40e_profile_segment with flexible-array member. This results in no differences in binary output. Link: KSPP/linux#335 Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Pucha Himasekhar Reddy <[email protected]> (A Contingent worker at Intel) Tested-by: Justin Stitt <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
1 parent e55c50e commit fbfa49f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/intel/i40e/i40e_type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1486,7 +1486,7 @@ struct i40e_profile_segment {
14861486
struct i40e_ddp_version version;
14871487
char name[I40E_DDP_NAME_SIZE];
14881488
u32 device_table_count;
1489-
struct i40e_device_id_entry device_table[1];
1489+
struct i40e_device_id_entry device_table[];
14901490
};
14911491

14921492
struct i40e_section_table {

0 commit comments

Comments
 (0)