Blame SOURCES/0073-align-struct-efi_variable-better.patch

8e15ce
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8e15ce
From: Peter Jones <pjones@redhat.com>
8e15ce
Date: Tue, 27 Feb 2018 13:55:35 -0500
8e15ce
Subject: [PATCH] align struct efi_variable better...
8e15ce
8e15ce
---
8e15ce
 include/grub/efiemu/runtime.h | 2 +-
8e15ce
 include/grub/types.h          | 1 +
8e15ce
 2 files changed, 2 insertions(+), 1 deletion(-)
8e15ce
8e15ce
diff --git a/include/grub/efiemu/runtime.h b/include/grub/efiemu/runtime.h
8e15ce
index 36d2dedf47e..9d93ba88bac 100644
8e15ce
--- a/include/grub/efiemu/runtime.h
8e15ce
+++ b/include/grub/efiemu/runtime.h
8e15ce
@@ -33,5 +33,5 @@ struct efi_variable
8e15ce
   grub_uint32_t namelen;
8e15ce
   grub_uint32_t size;
8e15ce
   grub_efi_uint32_t attributes;
8e15ce
-} GRUB_PACKED;
8e15ce
+} GRUB_PACKED GRUB_ALIGNED(8);
8e15ce
 #endif /* ! GRUB_EFI_EMU_RUNTIME_HEADER */
8e15ce
diff --git a/include/grub/types.h b/include/grub/types.h
8e15ce
index 0a3ff159136..ba446d99040 100644
8e15ce
--- a/include/grub/types.h
8e15ce
+++ b/include/grub/types.h
8e15ce
@@ -29,6 +29,7 @@
8e15ce
 #else
8e15ce
 #define GRUB_PACKED __attribute__ ((packed))
8e15ce
 #endif
8e15ce
+#define GRUB_ALIGNED(x) __attribute__((aligned (x)))
8e15ce
 
8e15ce
 #ifdef GRUB_BUILD
8e15ce
 # define GRUB_CPU_SIZEOF_VOID_P	BUILD_SIZEOF_VOID_P