File kexec-tools-xen-e820-redefinition.patch of Package kexec-tools

From: Tony Jones <>
Subject: fix redefinition error for e820
Upstream: yes
Git-commit: 941fa1f6e31bc7cb1b014277de36b80425da7010

At least on our systems, xenctrl.h defines (unguarded) struct e820entry
Move the (guarded) definition in include/x86/x86-linux.h to below.
Signed-off-by: Tony Jones <>
Signed-off-by: Simon Horman <>

 kexec/arch/i386/crashdump-x86.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

--- a/kexec/arch/i386/crashdump-x86.c
+++ b/kexec/arch/i386/crashdump-x86.c
@@ -41,12 +41,13 @@
 #include "../../crashdump.h"
 #include "kexec-x86.h"
 #include "crashdump-x86.h"
-#include "x86-linux-setup.h"
 #include <xenctrl.h>
 #endif /* HAVE_LIBXENCTRL */
+#include "x86-linux-setup.h"
 #include <x86/x86-linux.h>
 extern struct arch_options_t arch_options;
openSUSE Build Service is sponsored by