[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH 10/17] x86: provide stub for switch_compat



DCE couldn't have helped here because the invocation of switch_compat
also depends on external input.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 xen/include/xen/compat.h |  9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/xen/include/xen/compat.h b/xen/include/xen/compat.h
index 895e2ff..6f72353 100644
--- a/xen/include/xen/compat.h
+++ b/xen/include/xen/compat.h
@@ -228,7 +228,16 @@ struct vcpu_runstate_info;
 void xlat_vcpu_runstate_info(struct vcpu_runstate_info *);
 
 struct domain;
+
+#ifdef CONFIG_PV
 int switch_compat(struct domain *);
+#else
+# include <xen/errno.h>
+static inline int switch_compat(struct domain *d)
+{
+    return -EINVAL;
+}
+#endif
 
 #else
 
-- 
git-series 0.9.1

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.