diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2008-03-03 10:55:42 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2008-03-03 10:55:42 +0000 |
commit | eb2e678f410c0db555a2bd18d258e6d6e4b73312 (patch) | |
tree | 68347ccf827c8045b23924a45e5c92aeff01b6e8 /xen/common/kexec.c | |
parent | 66b0efa93689ac2e7468e0fa641c8bf05437a593 (diff) | |
download | xen-eb2e678f410c0db555a2bd18d258e6d6e4b73312.tar.gz xen-eb2e678f410c0db555a2bd18d258e6d6e4b73312.tar.bz2 xen-eb2e678f410c0db555a2bd18d258e6d6e4b73312.zip |
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>
Diffstat (limited to 'xen/common/kexec.c')
-rw-r--r-- | xen/common/kexec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/common/kexec.c b/xen/common/kexec.c index fcaebbbebc..4957f7ac22 100644 --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -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_HANDLE(void) uarg) return ret; } -#else /* COMPAT */ - #ifdef CONFIG_COMPAT static int kexec_get_range_compat(XEN_GUEST_HANDLE(void) uarg) { |