summaryrefslogtreecommitdiff
path: root/src/drivers/intel
diff options
context:
space:
mode:
authorElyes Haouas <ehaouas@noos.fr>2023-07-28 06:09:18 +0200
committerElyes Haouas <ehaouas@noos.fr>2023-07-30 10:00:38 +0000
commitd686ee24a7db9214b7542bb47effa71afc768e21 (patch)
treee266814821e9b3e1f748b1dc889b4e538f8d89f7 /src/drivers/intel
parent7465c16e73f2cb9b01b9a0cd3e513dbe5f2470ef (diff)
drivers/intel/gma/intel_bios.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: I80b4b2df4a38dcbb28d928018446e91acae90ee6 Signed-off-by: Elyes Haouas <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/76779 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz>
Diffstat (limited to 'src/drivers/intel')
-rw-r--r--src/drivers/intel/gma/intel_bios.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/intel/gma/intel_bios.h b/src/drivers/intel/gma/intel_bios.h
index 37e38aa338..bc6670133e 100644
--- a/src/drivers/intel/gma/intel_bios.h
+++ b/src/drivers/intel/gma/intel_bios.h
@@ -256,7 +256,7 @@ struct bdb_general_definitions {
* number = (block_size - sizeof(bdb_general_definitions))/
* sizeof(child_device_config);
*/
- union child_device_config devices[0];
+ union child_device_config devices[];
} __packed;
struct bdb_lvds_options {