xen/xu-11918-pv-hvm.diff

25 lines
971 B
Diff

# HG changeset patch
# User Ian Campbell <ian.campbell@xensource.com>
# Date Wed Oct 25 13:58:30 2006 +0100
# Node ID fc68e3ef9139b5483649a6bfe87b83a8ce1e9f12
# parent: 9f0b88aaf17076bcdc42dfef0870ba9f39e72f23
PV-to-HVM: Add a compatibility define for the end_that_request_last
which changed prototype in 2.6.16.
Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
Signed-off-by: K. Y. Srinivasan <ksrinivasan@novell.com>
Signed-off-by: Tsunehisa Doi <Doi.Tsunehisa@jp.fujitsu.com>
--- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Wed Oct 25 13:58:30 2006 +0100
+++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h Wed Oct 25 13:58:30 2006 +0100
@@ -45,4 +45,8 @@ void *kzalloc(size_t size, int flags);
void *kzalloc(size_t size, int flags);
#endif
+#if defined(_LINUX_BLKDEV_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16)
+#define end_that_request_last(req, uptodate) end_that_request_last(req)
#endif
+
+#endif