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-changelog

[Xen-changelog] [xen-unstable] kexec: Include compat/kexec.h early

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] kexec: Include compat/kexec.h early
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 03 Mar 2008 07:30:20 -0800
Delivery-date: Mon, 03 Mar 2008 07:31:38 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1204541742 0
# Node ID 8d2e77f0bcd0d872b46b3e56e12ea4183297fe84
# Parent  35f4f285762f19abd9cb56d96afe352dc97422fd
kexec: Include compat/kexec.h early

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 files changed, 3 insertions(+), 2 deletions(-)

diff -r 35f4f285762f -r 8d2e77f0bcd0 xen/common/kexec.c
--- a/xen/common/kexec.c        Mon Mar 03 10:54:24 2008 +0000
+++ b/xen/common/kexec.c        Mon Mar 03 10:55:42 2008 +0000
@@ -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)
 {

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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] kexec: Include compat/kexec.h early, Xen patchbot-unstable <=