# HG changeset patch # User Ian Campbell # 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 Signed-off-by: K. Y. Srinivasan Signed-off-by: Tsunehisa Doi --- 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