From a0b780220aaf7562ceaf0e8ff32dd1047deef7c0 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Wed, 25 Oct 2006 13:58:30 +0100 Subject: 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 --- unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'unmodified_drivers') diff --git a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h index 219382c3c1..4978c63610 100644 --- a/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h +++ b/unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h @@ -45,4 +45,8 @@ signed long schedule_timeout_interruptible(signed long timeout); 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 -- cgit v1.2.3