gpt_partition: Mark grub_gpt_partentry as having natural alignment

gpt_partition contains grub_guid. We need to decide whether the whole
structure is unaligned and then we need to use packed_guid. But we never
have unaligned part entries as we read them in an aligned buffer from disk.
Hence just make it all aligned.

Signed-off-by: Vladimir Serbinenko <phcoder@gmail.com>
This commit is contained in:
Vladimir Serbinenko committed 2023-11-06 22:48:24 +01:00
1 parent 7ad30299da
commit 5fc985bfdd
1 file changed
+1 -1
+1 -1
View File
@@ -67,7 +67,7 @@ struct grub_gpt_partentry
grub_uint64_t end; grub_uint64_t end;
grub_uint64_t attrib; grub_uint64_t attrib;
char name[72]; char name[72];
} GRUB_PACKED; };
grub_err_t grub_err_t
grub_gpt_partition_map_iterate (grub_disk_t disk, grub_gpt_partition_map_iterate (grub_disk_t disk,