From 408232e4bfcdc33bbec9b866569ff6aea11ba9ec Mon Sep 17 00:00:00 2001 From: Elyes Haouas Date: Sun, 30 Jul 2023 13:08:20 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/c/coreboot/+/76837 Tested-by: build bot (Jenkins) Reviewed-by: Felix Singer --- src/soc/intel/broadwell/include/soc/me.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/soc/intel/broadwell/include/soc/me.h b/src/soc/intel/broadwell/include/soc/me.h index b0c50a21ec..959290def1 100644 --- a/src/soc/intel/broadwell/include/soc/me.h +++ b/src/soc/intel/broadwell/include/soc/me.h @@ -429,7 +429,7 @@ typedef struct { 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 { -- cgit v1.2.3