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 <ilias.apalodimas@linaro.org>
Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
This commit is contained in:
Caleb Connolly 2024-08-30 13:34:31 +01:00 committed by Heinrich Schuchardt
parent 775f7657ba
commit 3cc3bc08f4
2 changed files with 2 additions and 2 deletions

View file

@ -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)));

View file

@ -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);