From: Vladimir Serbinenko Date: Tue, 31 Oct 2023 17:24:09 +0000 (+0100) Subject: gpt_partition: Mark grub_gpt_partentry as having natural alignment X-Git-Tag: grub-2.12~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fc985bfdda8b04c65e3768a55412f8208bb6504;p=thirdparty%2Fgrub.git 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 --- diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h index 020e71920..292ea03f1 100644 --- a/include/grub/gpt_partition.h +++ b/include/grub/gpt_partition.h @@ -67,7 +67,7 @@ struct grub_gpt_partentry grub_uint64_t end; grub_uint64_t attrib; char name[72]; -} GRUB_PACKED; +}; grub_err_t grub_gpt_partition_map_iterate (grub_disk_t disk,