summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Horman <horms@verge.net.au>2013-11-19 10:11:48 +0900
committerSimon Horman <horms@verge.net.au>2013-11-19 10:20:54 +0900
commitd01680c28ba7bf1e02f74aa5841247a45738f5d4 (patch)
tree1b2baafed43d31d9587abb3488fb80c4fb641dd6
parentc0b4a3f95dd80256cc6d7084436235e69b4933fb (diff)
kexec/xen: Correct some compile errors
Correct various problems introduced by 08cf823704b0fa3b ("kexec/xen: directly load images images into Xen"). These all relate to the case here HAVE_LIBXENCTRL is not set. Signed-off-by: Simon Horman <horms@verge.net.au>
-rw-r--r--kexec/kexec-xen.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kexec/kexec-xen.c b/kexec/kexec-xen.c
index 77f65c0..e885246 100644
--- a/kexec/kexec-xen.c
+++ b/kexec/kexec-xen.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
+#include <stdlib.h>
#include <elf.h>
#include "kexec.h"
#include "kexec-syscall.h"
@@ -120,14 +121,12 @@ void xen_kexec_exec(void)
#else /* ! HAVE_LIBXENCTRL */
-int xen_kexec_load(uint64_t entry,
- uint32_t nr_segments, struct kexec_segment *segments,
- uint64_t kexec_flags)
+int xen_kexec_load(struct kexec_info *UNUSED(info))
{
return -1;
}
-int xen_kexec_unload(uin64_t kexec_flags);
+int xen_kexec_unload(uint64_t kexec_flags)
{
return -1;
}