]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi: define struct efi_guid
authorCaleb Connolly <caleb.connolly@linaro.org>
Fri, 30 Aug 2024 12:34:31 +0000 (13:34 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Thu, 12 Sep 2024 15:35:37 +0000 (17:35 +0200)
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>
include/efi.h
tools/eficapsule.h

index d5af213994683f0a81dbf2028748a587f73ef026..84640cf7b2528ef248f80ca41058aa722606f99b 100644 (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)));
 
index 6efd07d2eb6b98cd90d83775dbd9ee9c37a58285..97d077536d5bb8883c74d1454f9878f64957d328 100644 (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);