include/commonlib/bsd/mem_chip_info.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: Ia1d597c0e3e86db8c13829e58a8a27d9de1480b4 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76788 Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
parent
c1700e02fa
commit
3a48e52dfe
|
@ -86,7 +86,7 @@ struct mem_chip_info {
|
|||
uint8_t manufacturer_id; /* raw value from MR5 */
|
||||
uint8_t revision_id[2]; /* raw values from MR6 and MR7 */
|
||||
uint8_t serial_id[8]; /* LPDDR5 only (set to 0 otherwise), MR47 - MR54 */
|
||||
} entries[0];
|
||||
} entries[];
|
||||
};
|
||||
|
||||
static inline size_t mem_chip_info_size(int entries)
|
||||
|
|
Loading…
Reference in New Issue