WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch 1/5] kexec: Include compat/kexec.h early

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch 1/5] kexec: Include compat/kexec.h early
From: Simon Horman <horms@xxxxxxxxxxxx>
Date: Fri, 29 Feb 2008 15:28:55 +0900
Cc: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Delivery-date: Thu, 28 Feb 2008 22:33:01 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080229062854.370669317@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: quilt/0.46-1
Include compat/kexec.h at the top of xen/common/kexec.c to
allow kexec_get_range_compat() to be compiled outside
of #ifndef COMPAT.

This will slightly simplify the explicit creation of other _compat() functions
and is needed for the eventual removal of xen/common/compat/kexec.c

Note that the inclusion of compat/kexec.h needs to be protected
by #ifdef CONFIG_COMPAT, as the file doesn't exist otherwise.

Signed-off-by: Simon Horman <horms@xxxxxxxxxxxx>

--- 

 xen/common/kexec.c |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Index: xen-unstable.hg/xen/common/kexec.c
===================================================================
--- xen-unstable.hg.orig/xen/common/kexec.c     2008-02-29 15:08:02.000000000 
+0900
+++ xen-unstable.hg/xen/common/kexec.c  2008-02-29 15:10:21.000000000 +0900
@@ -23,6 +23,9 @@
 #include <xen/kexec.h>
 #include <public/elfnote.h>
 #include <xsm/xsm.h>
+#ifdef CONFIG_COMPAT
+#include <compat/kexec.h>
+#endif
 
 #ifndef COMPAT
 
@@ -245,8 +248,6 @@ static int kexec_get_range(XEN_GUEST_HAN
     return ret;
 }
 
-#else /* COMPAT */
-
 #ifdef CONFIG_COMPAT
 static int kexec_get_range_compat(XEN_GUEST_HANDLE(void) uarg)
 {

-- 

-- 
Horms


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