Skip to content

Commit 4bb28b2

Browse files
GustavoARSilvaanguy11
authored andcommitted
i40e: Replace one-element array with flex-array member in struct i40e_profile_aq_section
One-element and zero-length arrays are deprecated. So, replace one-element array in struct i40e_profile_aq_section 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 ff1a724 commit 4bb28b2

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
@@ -1523,7 +1523,7 @@ struct i40e_profile_aq_section {
15231523
u16 flags;
15241524
u8 param[16];
15251525
u16 datalen;
1526-
u8 data[1];
1526+
u8 data[];
15271527
};
15281528

15291529
struct i40e_profile_info {

0 commit comments

Comments
 (0)