GRUB_PACKED allowed only using this struct with architectures that use 4 byte or less aligned memory pointers. Coreboot doesn't use the packed attribute when writing this to the coreboot table meaning it is safe to remove GRUB_PACKED here.
This change makes it now possible to support 64 bit architectures that expect 8 byte aligned pointers. Signed-off-by: Joonas Kylmälä <joonas.kylm...@iki.fi> --- include/grub/coreboot/lbio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/grub/coreboot/lbio.h b/include/grub/coreboot/lbio.h index 5076d36c7..3a640fcae 100644 --- a/include/grub/coreboot/lbio.h +++ b/include/grub/coreboot/lbio.h @@ -97,7 +97,7 @@ struct grub_linuxbios_mem_region grub_uint64_t size; #define GRUB_MACHINE_MEMORY_AVAILABLE 1 grub_uint32_t type; -} GRUB_PACKED; +}; typedef struct grub_linuxbios_mem_region *mem_region_t; grub_err_t -- 2.20.1 _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel