nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

Blame SOURCES/0067-Fixup-for-newer-compiler.patch

8e15ce
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8e15ce
From: Peter Jones <pjones@redhat.com>
8e15ce
Date: Thu, 10 May 2018 13:40:19 -0400
8e15ce
Subject: [PATCH] Fixup for newer compiler
8e15ce
8e15ce
---
8e15ce
 grub-core/fs/btrfs.c         | 2 +-
8e15ce
 include/grub/gpt_partition.h | 2 +-
8e15ce
 2 files changed, 2 insertions(+), 2 deletions(-)
8e15ce
8e15ce
diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c
b35c50
index 2b21cbaa67..4cc86e9b79 100644
8e15ce
--- a/grub-core/fs/btrfs.c
8e15ce
+++ b/grub-core/fs/btrfs.c
8e15ce
@@ -218,7 +218,7 @@ struct grub_btrfs_inode
8e15ce
   grub_uint64_t size;
8e15ce
   grub_uint8_t dummy2[0x70];
8e15ce
   struct grub_btrfs_time mtime;
8e15ce
-} GRUB_PACKED;
8e15ce
+} GRUB_PACKED  __attribute__ ((aligned(8)));
8e15ce
 
8e15ce
 struct grub_btrfs_extent_data
8e15ce
 {
8e15ce
diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h
b35c50
index 7a93f43291..8212697bf6 100644
8e15ce
--- a/include/grub/gpt_partition.h
8e15ce
+++ b/include/grub/gpt_partition.h
8e15ce
@@ -76,7 +76,7 @@ struct grub_gpt_partentry
8e15ce
   grub_uint64_t end;
8e15ce
   grub_uint64_t attrib;
8e15ce
   char name[72];
8e15ce
-} GRUB_PACKED;
8e15ce
+} GRUB_PACKED  __attribute__ ((aligned(8)));
8e15ce
 
8e15ce
 grub_err_t
8e15ce
 grub_gpt_partition_map_iterate (grub_disk_t disk,