diff --git a/ChangeLog b/ChangeLog index 902e66556..9058cd7f2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-07-14 Vladimir Serbinenko + + * grub-core/fs/zfs/zfs_lz4.c: Add missing packed attribute. + 2013-07-14 Vladimir Serbinenko * grub-core/fs/zfs/zfs.c (nvlist_next_nvpair): Fix improper cast. diff --git a/grub-core/fs/zfs/zfs_lz4.c b/grub-core/fs/zfs/zfs_lz4.c index 4233a435e..530c63afb 100644 --- a/grub-core/fs/zfs/zfs_lz4.c +++ b/grub-core/fs/zfs/zfs_lz4.c @@ -99,13 +99,13 @@ typedef grub_size_t size_t; typedef struct _U16_S { U16 v; -} U16_S; +} __attribute__ ((packed)) U16_S; typedef struct _U32_S { U32 v; -} U32_S; +} __attribute__ ((packed)) U32_S; typedef struct _U64_S { U64 v; -} U64_S; +} __attribute__ ((packed)) U64_S; #define A64(x) (((U64_S *)(x))->v) #define A32(x) (((U32_S *)(x))->v)