]> xenbits.xensource.com Git - people/sstabellini/xen-unstable.git/.git/commitdiff
kexec: some #include adjustments
authorJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:11:49 +0000 (14:11 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 14 Oct 2020 12:11:49 +0000 (14:11 +0200)
In the context of working on x86's elf_core_save_regs() I noticed there
were far more source files getting rebuilt than I would have expected.
While the main offender looks to have been fixmap.h including kexec.h,
also drop use of elfcore.h from kexec.h.

While adjusting machine_kexec.c also replace use of guest_access.h by
domain_page.h.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/machine_kexec.c
xen/common/kexec.c
xen/include/asm-x86/fixmap.h
xen/include/xen/elfcore.h
xen/include/xen/kexec.h

index b70d5a6a86e734196dabbde618ed77db00fcc6f1..08ec9fd43b1de0c75d89e13a5f5add1730552e2d 100644 (file)
@@ -16,8 +16,9 @@
  */
 
 #include <xen/types.h>
+#include <xen/domain_page.h>
+#include <xen/elfstructs.h>
 #include <xen/kexec.h>
-#include <xen/guest_access.h>
 #include <asm/fixmap.h>
 #include <asm/hpet.h>
 #include <asm/page.h>
index 9af7de4df3c85a491bb01fa2aca5f388490d6297..52cdc4ebc333676a543e421e5d7a9a851410b89e 100644 (file)
@@ -10,6 +10,7 @@
 #include <xen/lib.h>
 #include <xen/acpi.h>
 #include <xen/ctype.h>
+#include <xen/elfcore.h>
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/param.h>
index 8330097a74bc0a08ec6cebcd63da695f4f9c4657..83b2b7634d3271b009a231160aabe606a3be57cc 100644 (file)
@@ -21,7 +21,6 @@
 
 #include <xen/acpi.h>
 #include <xen/pfn.h>
-#include <xen/kexec.h>
 #include <asm/apicdef.h>
 #include <asm/msi.h>
 #include <acpi/apei.h>
index 4ad477d5b88d2111d9f51119fc06716e9ecbd854..0d78033424fbbdb0ca0a691d43f4fa338fbb063e 100644 (file)
@@ -56,7 +56,7 @@ typedef struct
     int pr_fpvalid;              /* True if math co-processor being used.  */
 } ELF_Prstatus;
 
-typedef struct {
+typedef struct crash_xen_info {
     unsigned long xen_major_version;
     unsigned long xen_minor_version;
     unsigned long xen_extra_version;
index e235339c85281f7ab9412bca968b62e4d48d1252..e85ba16405889565c2ff24ec79190489061f29d2 100644 (file)
@@ -5,7 +5,6 @@
 
 #include <public/kexec.h>
 
-#include <xen/elfcore.h>
 #include <xen/kimage.h>
 
 typedef struct xen_kexec_reserve {
@@ -51,7 +50,7 @@ void machine_reboot_kexec(struct kexec_image *image);
 void machine_kexec(struct kexec_image *image);
 void kexec_crash(void);
 void kexec_crash_save_cpu(void);
-crash_xen_info_t *kexec_crash_save_info(void);
+struct crash_xen_info *kexec_crash_save_info(void);
 void machine_crash_shutdown(void);
 int machine_kexec_get(xen_kexec_range_t *range);
 int machine_kexec_get_xen(xen_kexec_range_t *range);