]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
gpt_partition: Mark grub_gpt_partentry as having natural alignment
authorVladimir Serbinenko <phcoder@gmail.com>
Tue, 31 Oct 2023 17:24:09 +0000 (18:24 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 6 Nov 2023 21:48:24 +0000 (22:48 +0100)
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>
include/grub/gpt_partition.h

index 020e71920463aa5612a0f6703d8dc08c22f51c5f..292ea03f1e53de0cb57d5a4d4825ffe90f8c883a 100644 (file)
@@ -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,