summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-07-30 13:08:20 +0200
committerJakub Czapiga <jacz@semihalf.com>2023-08-01 12:52:47 +0000
commit408232e4bfcdc33bbec9b866569ff6aea11ba9ec (patch)
treeea9a07ab5213f5fc52be3fe9342ea9972d6d9716 /src
parent5ebf10730588369dd23dc120f670c6a019287934 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/soc/intel/broadwell/include/soc/me.h2
1 files changed, 1 insertions, 1 deletions
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 {