On Tue, 2023-10-31 at 20:23 +0100, Vladimir 'phcoder' Serbinenko wrote: > 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 <phco...@gmail.com> > --- > include/grub/gpt_partition.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > 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, > -- > 2.39.2 >
Tested-by: John Paul Adrian Glaubitz <glaub...@physik.fu-berlin.de> -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer `. `' Physicist `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel