[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] kexec: Include compat/kexec.h early
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |