diff options
author | Caleb Connolly <caleb.connolly@linaro.org> | 2024-08-30 13:34:31 +0100 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2024-09-12 17:35:37 +0200 |
commit | 3cc3bc08f4669e5952e3dc649dcd13a19ca2a038 (patch) | |
tree | e78797198bb5059f4c4ed19cae1489fd695ea59a | |
parent | 775f7657ba583d6bbd0b2833cd589247292a17be (diff) |
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>
-rw-r--r-- | include/efi.h | 2 | ||||
-rw-r--r-- | tools/eficapsule.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/efi.h b/include/efi.h index d5af2139946..84640cf7b25 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 6efd07d2eb6..97d077536d5 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); |