summaryrefslogtreecommitdiff
path: root/src/soc/intel/common/mma.c
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-07-30 13:07:18 +0200
committerJakub Czapiga <jacz@semihalf.com>2023-08-01 12:51:46 +0000
commit5ebf10730588369dd23dc120f670c6a019287934 (patch)
treeb4ba13f56370a061ebb13acb63545af83c680a21 /src/soc/intel/common/mma.c
parentfc2f304f062bc51cf51ad999caf13a6acc64a1b3 (diff)
soc/intel/common/mma: 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: Id19193b960935eeffca8e8db60073321592368fe Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76836 Reviewed-by: Felix Singer <service+coreboot-gerrit@felixsinger.de> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/soc/intel/common/mma.c')
-rw-r--r--src/soc/intel/common/mma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/soc/intel/common/mma.c b/src/soc/intel/common/mma.c
index 3314e8e5c5..6501f1147f 100644
--- a/src/soc/intel/common/mma.c
+++ b/src/soc/intel/common/mma.c
@@ -17,7 +17,7 @@
struct mma_data_container {
uint32_t mma_signature; /* "MMAD" */
- uint8_t mma_data[0]; /* Variable size, platform/run time dependent. */
+ uint8_t mma_data[]; /* Variable size, platform/run time dependent. */
} __packed;
/*