[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-3.1-testing] Do not include compile.h directly -- use version.h indirection functions.



# HG changeset patch
# User Keir Fraser <keir@xxxxxxxxxxxxx>
# Date 1192093327 -3600
# Node ID 1c59c99c5773ae677bbbf30caae6ed790d2541d4
# Parent  c28a2e489db8214d96a2ea8645b8a4dfd39a75f4
Do not include compile.h directly -- use version.h indirection functions.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
xen-unstable changeset:   16089:ab5b615867ee7913ae6f0afe49f7a5e8ad20ea94
xen-unstable date:        Thu Oct 11 10:02:07 2007 +0100
---
 xen/arch/x86/hvm/save.c  |    8 +++-----
 xen/drivers/video/vesa.c |    1 -
 xen/drivers/video/vga.c  |    1 -
 3 files changed, 3 insertions(+), 7 deletions(-)

diff -r c28a2e489db8 -r 1c59c99c5773 xen/arch/x86/hvm/save.c
--- a/xen/arch/x86/hvm/save.c   Wed Oct 17 09:57:02 2007 +0100
+++ b/xen/arch/x86/hvm/save.c   Thu Oct 11 10:02:07 2007 +0100
@@ -19,16 +19,14 @@
  */
 
 #include <xen/config.h>
-#include <xen/compile.h>
 #include <xen/lib.h>
+#include <xen/version.h>
 #include <public/version.h>
 #include <xen/sched.h>
-
 #include <asm/hvm/hvm.h>
 #include <asm/hvm/support.h>
 #include <asm/hvm/domain.h>
 #include <asm/current.h>
-
 
 /* List of handlers for various HVM save and restore types */
 static struct { 
@@ -94,7 +92,7 @@ int hvm_save(struct domain *d, hvm_domai
     hdr.cpuid = eax;
 
     /* Save xen changeset */
-    c = strrchr(XEN_CHANGESET, ':');
+    c = strrchr(xen_changeset(), ':');
     if ( c )
         hdr.changeset = simple_strtoll(c, NULL, 16);
     else 
@@ -170,7 +168,7 @@ int hvm_load(struct domain *d, hvm_domai
                "does not match host (%#"PRIx32").\n", hdr.cpuid, eax);
 
 
-    c = strrchr(XEN_CHANGESET, ':');
+    c = strrchr(xen_changeset(), ':');
     if ( hdr.changeset == -1ULL )
         gdprintk(XENLOG_WARNING, 
                  "HVM restore: Xen changeset was not saved.\n");
diff -r c28a2e489db8 -r 1c59c99c5773 xen/drivers/video/vesa.c
--- a/xen/drivers/video/vesa.c  Wed Oct 17 09:57:02 2007 +0100
+++ b/xen/drivers/video/vesa.c  Thu Oct 11 10:02:07 2007 +0100
@@ -5,7 +5,6 @@
  */
 
 #include <xen/config.h>
-#include <xen/compile.h>
 #include <xen/init.h>
 #include <xen/lib.h>
 #include <xen/mm.h>
diff -r c28a2e489db8 -r 1c59c99c5773 xen/drivers/video/vga.c
--- a/xen/drivers/video/vga.c   Wed Oct 17 09:57:02 2007 +0100
+++ b/xen/drivers/video/vga.c   Thu Oct 11 10:02:07 2007 +0100
@@ -5,7 +5,6 @@
  */
 
 #include <xen/config.h>
-#include <xen/compile.h>
 #include <xen/init.h>
 #include <xen/lib.h>
 #include <xen/mm.h>

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.