Skip to content

Commit ff1a724

Browse files
GustavoARSilvaanguy11
authored andcommitted
i40e: Replace one-element array with flex-array member in struct i40e_section_table
One-element and zero-length arrays are deprecated. So, replace one-element array in struct i40e_section_table 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) Signed-off-by: Tony Nguyen <[email protected]>
1 parent fbfa49f commit ff1a724

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
@@ -1491,7 +1491,7 @@ struct i40e_profile_segment {
14911491

14921492
struct i40e_section_table {
14931493
u32 section_count;
1494-
u32 section_offset[1];
1494+
u32 section_offset[];
14951495
};
14961496

14971497
struct i40e_profile_section_header {

0 commit comments

Comments
 (0)