x86/HVM: reduce vioapic.h include dependencies
authorJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:14:57 +0000 (16:14 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 17 Mar 2020 15:14:57 +0000 (16:14 +0100)
Drop an #include not needed by the header itself. While verifying the
header (now) builds standalone, I noticed an omission in a public header
which gets taken care of here as well.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/asm-x86/hvm/vioapic.h
xen/include/public/arch-x86/hvm/save.h

index a72cd178f4c3c08558adc2a2b9b89b1e1972df6f..d6f4e12d546df85ee7c93e904da2c5d866e434fb 100644 (file)
@@ -25,7 +25,6 @@
 #define __ASM_X86_HVM_VIOAPIC_H__
 
 #include <xen/types.h>
-#include <xen/smp.h>
 #include <public/hvm/save.h>
 
 #define VIOAPIC_VERSION_ID 0x11 /* IOAPIC version */
index 468c28dedbd27444d60984188da194b07bacc901..773a380bc22beb1bf94c33594301023dcd713b5a 100644 (file)
@@ -26,6 +26,8 @@
 #ifndef __XEN_PUBLIC_HVM_SAVE_X86_H__
 #define __XEN_PUBLIC_HVM_SAVE_X86_H__
 
+#include "../../xen.h"
+
 /*
  * Save/restore header: general info about the save file.
  */