Skip to contentSkip to conversation

arm: qemu: fix update_info declaration

PATCH In review Vincent Stehlé 2 participants 2 messages Dec 6, 2024 – Dec 7, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: qemu: fix update_info declaration

Add a missing comma in the update_info structure declaration.

This fixes the following build error when building with EFI_RUNTIME_UPDATE_CAPSULE or EFI_CAPSULE_ON_DISK:

board/emulation/qemu-arm/qemu-arm.c:52:9: error: request for member ‘images’ in something not a structure or union

Fixes cccea18813c4 ("efi_loader: add the number of image entries in efi_capsule_update_info")
Cc Masahisa Kojima <[email protected]>
Cc Tuomas Tynkkynen <[email protected]>
Cc Tom Rini <[email protected]>
---
 board/emulation/qemu-arm/qemu-arm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
board/emulation/qemu-arm/qemu-arm.c +1 -1
index 6095cb02b23..e0e18b4dfea 100644
@@ -48,7 +48,7 @@ struct efi_fw_image fw_images[] = {
 };
 
 struct efi_capsule_update_info update_info = {
-	.num_images = ARRAY_SIZE(fw_images)
+	.num_images = ARRAY_SIZE(fw_images),
 	.images = fw_images,
 };
 
Signature · 1 line
2.45.2
#1 lore raw
Quoted 8 lines · Vincent Stehlé

Add a missing comma in the update_info structure declaration.

This fixes the following build error when building with EFI_RUNTIME_UPDATE_CAPSULE or EFI_CAPSULE_ON_DISK:

board/emulation/qemu-arm/qemu-arm.c:52:9: error: request for member ‘images’ in something not a structure or union

[...]

Applied to u-boot/master, thanks!

Signature · 1 line
Tom