X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=disk%2Fpart_efi.h;h=5903e7c812a6e21e1a2420d338bd4a0e402c939e;hb=7ee411071f31c856107e6b29fcd8df53ae4d7349;hp=6bbb06bde904450f7d4d0332eb8925ec8be5870a;hpb=33211469f7d7e2afacf103cc55790f734572f7a6;p=u-boot diff --git a/disk/part_efi.h b/disk/part_efi.h index 6bbb06bde9..5903e7c812 100644 --- a/disk/part_efi.h +++ b/disk/part_efi.h @@ -117,13 +117,14 @@ typedef struct _gpt_entry_attributes { unsigned long long type_guid_specific:16; } __attribute__ ((packed)) gpt_entry_attributes; +#define PARTNAME_SZ (72 / sizeof(efi_char16_t)) typedef struct _gpt_entry { efi_guid_t partition_type_guid; efi_guid_t unique_partition_guid; unsigned char starting_lba[8]; unsigned char ending_lba[8]; gpt_entry_attributes attributes; - efi_char16_t partition_name[72 / sizeof(efi_char16_t)]; + efi_char16_t partition_name[PARTNAME_SZ]; } __attribute__ ((packed)) gpt_entry;