ia64/xen-unstable

changeset 17164:8d2e77f0bcd0

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@verge.net.au>
author Keir Fraser <keir.fraser@citrix.com>
date Mon Mar 03 10:55:42 2008 +0000 (2008-03-03)
parents 35f4f285762f
children df31d8e294ff
files xen/common/kexec.c
line diff
     1.1 --- a/xen/common/kexec.c	Mon Mar 03 10:54:24 2008 +0000
     1.2 +++ b/xen/common/kexec.c	Mon Mar 03 10:55:42 2008 +0000
     1.3 @@ -23,6 +23,9 @@
     1.4  #include <xen/kexec.h>
     1.5  #include <public/elfnote.h>
     1.6  #include <xsm/xsm.h>
     1.7 +#ifdef CONFIG_COMPAT
     1.8 +#include <compat/kexec.h>
     1.9 +#endif
    1.10  
    1.11  #ifndef COMPAT
    1.12  
    1.13 @@ -245,8 +248,6 @@ static int kexec_get_range(XEN_GUEST_HAN
    1.14      return ret;
    1.15  }
    1.16  
    1.17 -#else /* COMPAT */
    1.18 -
    1.19  #ifdef CONFIG_COMPAT
    1.20  static int kexec_get_range_compat(XEN_GUEST_HANDLE(void) uarg)
    1.21  {