From: Caleb Connolly Date: Fri, 30 Aug 2024 12:34:31 +0000 (+0100) Subject: efi: define struct efi_guid X-Git-Url: http://git.dujemihanovic.xyz/img/static/gitweb.css?a=commitdiff_plain;h=3cc3bc08f4669e5952e3dc649dcd13a19ca2a038;p=u-boot.git efi: define struct efi_guid This let's us forward declare efi_guid_t in the UUID code without pulling in efi.h Reviewed-by: Ilias Apalodimas Signed-off-by: Caleb Connolly --- diff --git a/include/efi.h b/include/efi.h index d5af213994..84640cf7b2 100644 --- a/include/efi.h +++ b/include/efi.h @@ -74,7 +74,7 @@ struct efi_device_path { * struct { u32 a; u16; b; u16 c; u8 d[8]; }; which is 4-byte * aligned. */ -typedef struct { +typedef struct efi_guid { u8 b[16]; } efi_guid_t __attribute__((aligned(4))); diff --git a/tools/eficapsule.h b/tools/eficapsule.h index 6efd07d2eb..97d077536d 100644 --- a/tools/eficapsule.h +++ b/tools/eficapsule.h @@ -24,7 +24,7 @@ #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) -typedef struct { +typedef struct efi_guid { uint8_t b[16]; } efi_guid_t __aligned(8);