sb/intel/lynxpoint/me: Use C99 flexible arrays

Use C99 flexible arrays instead of older style of one-element or
zero-length arrays.
It allows the compiler to generate errors when the flexible array does
not occur at the end in the structure.

Change-Id: If31cbc5ae184c4eb66011666c1bb655fa16afba0
Signed-off-by: Elyes Haouas <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/76781
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
This commit is contained in:
Elyes Haouas 2023-07-28 06:12:08 +02:00
parent 3a48e52dfe
commit a8a0d394dd
2 changed files with 2 additions and 2 deletions

View File

@ -723,7 +723,7 @@ static u32 me_to_host_words_pending(void)
struct mbp_payload {
union mbp_header header;
u32 data[0];
u32 data[];
};
/*

View File

@ -462,7 +462,7 @@ struct mbp_icc_profile {
u8 icc_profile_index;
u8 reserved;
u32 icc_reg_bundles;
struct icc_address_mask icc_address_mask[0];
struct icc_address_mask icc_address_mask[];
} __packed;
struct tdt_state_flag {