aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/kexec.h
diff options
context:
space:
mode:
authorDavid Vrabel <david.vrabel@citrix.com>2012-03-22 10:19:01 +0000
committerDavid Vrabel <david.vrabel@citrix.com>2012-03-22 10:19:01 +0000
commit5823a8d7bfebf2519b8ed5b979efd24b31320137 (patch)
tree157fc6d739a492f758804fec3507af0357f92a63 /xen/include/xen/kexec.h
parentaab627b9209ab9c2e61f275f8c52b29dcf989b61 (diff)
downloadxen-5823a8d7bfebf2519b8ed5b979efd24b31320137.tar.gz
xen-5823a8d7bfebf2519b8ed5b979efd24b31320137.tar.bz2
xen-5823a8d7bfebf2519b8ed5b979efd24b31320137.zip
kexec: provide crashinfo_maxaddr_bits if !CONFIG_KEXEC
Fix the build where !CONFIG_KEXEC (e.g., arm) by providing a default crashinfo_maxaddr_bits. Signed-off-by: David Vrabel <david.vrabel@citrix.com> Committed-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/xen/kexec.h')
-rw-r--r--xen/include/xen/kexec.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xen/include/xen/kexec.h b/xen/include/xen/kexec.h
index 8e9c1d36d9..b3ca8b0803 100644
--- a/xen/include/xen/kexec.h
+++ b/xen/include/xen/kexec.h
@@ -1,6 +1,8 @@
#ifndef __XEN_KEXEC_H__
#define __XEN_KEXEC_H__
+#ifdef CONFIG_KEXEC
+
#include <public/kexec.h>
#include <asm/percpu.h>
#include <xen/elfcore.h>
@@ -76,6 +78,12 @@ void vmcoreinfo_append_str(const char *fmt, ...)
vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
(unsigned long)offsetof(struct name, sub.field))
+#else /* !CONFIG_KEXEC */
+
+#define crashinfo_maxaddr_bits 0
+
+#endif
+
#endif /* __XEN_KEXEC_H__ */
/*