Jakub Czapiga has submitted this change. ( https://review.coreboot.org/c/coreboot/+/76837?usp=email )
Change subject: soc/intel/broadwell/include/soc/me.h: Use C99 flexible arrays ......................................................................
soc/intel/broadwell/include/soc/me.h: 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: I2d65e9dbefc8fa5d8288151995a587f76049c65a Signed-off-by: Elyes Haouas ehaouas@noos.fr Reviewed-on: https://review.coreboot.org/c/coreboot/+/76837 Tested-by: build bot (Jenkins) no-reply@coreboot.org Reviewed-by: Felix Singer service+coreboot-gerrit@felixsinger.de --- M src/soc/intel/broadwell/include/soc/me.h 1 file changed, 1 insertion(+), 1 deletion(-)
Approvals: Felix Singer: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/src/soc/intel/broadwell/include/soc/me.h b/src/soc/intel/broadwell/include/soc/me.h index b0c50a2..959290d 100644 --- a/src/soc/intel/broadwell/include/soc/me.h +++ b/src/soc/intel/broadwell/include/soc/me.h @@ -429,7 +429,7 @@ u8 icc_profile_index; u8 reserved; u32 icc_reg_bundles; - icc_address_mask icc_address_mask[0]; + icc_address_mask icc_address_mask[]; } __packed mbp_icc_profile;
typedef struct {