summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-07-28 06:13:48 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-07-30 09:57:56 +0000
commit22bb3f0f3ec7dbb77eeb054fca39855bccfd516f (patch)
tree5fa60c76cb9d839052a448ee6fae9ede7ae95370
parent8843b6fe1d6bd02c3316bf83216ef473ab3aa653 (diff)
soc/intel/broadwell/pch/me.c: 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: Iea63e7ce165b1c8129725136e39bff45765023e6 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76782 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
-rw-r--r--src/soc/intel/broadwell/pch/me.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/broadwell/pch/me.c b/src/soc/intel/broadwell/pch/me.c
index 6973c723c1..147eb29a2f 100644
--- a/src/soc/intel/broadwell/pch/me.c
+++ b/src/soc/intel/broadwell/pch/me.c
@@ -806,7 +806,7 @@ static u32 me_to_host_words_pending(void)
struct mbp_payload {
mbp_header header;
- u32 data[0];
+ u32 data[];
};
/*