aboutsummaryrefslogtreecommitdiffstats
path: root/unmodified_drivers/linux-2.6/compat-include
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@xensource.com>2006-10-25 13:58:30 +0100
committerIan Campbell <ian.campbell@xensource.com>2006-10-25 13:58:30 +0100
commit5a246a63328b8768b0270490281c9945bb124fd5 (patch)
tree396fd83ce9de5e7ae860b5af5461add859b067fe /unmodified_drivers/linux-2.6/compat-include
parent4bfff95df70a42b4540928566e664c0349cbd8cc (diff)
downloadxen-5a246a63328b8768b0270490281c9945bb124fd5.tar.gz
xen-5a246a63328b8768b0270490281c9945bb124fd5.tar.bz2
xen-5a246a63328b8768b0270490281c9945bb124fd5.zip
PV-on-HVM: Include compatability vmalloc_to_pfn for kernels before 2.6.10
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>
Diffstat (limited to 'unmodified_drivers/linux-2.6/compat-include')
-rw-r--r--unmodified_drivers/linux-2.6/compat-include/xen/platform-compat.h4
1 files changed, 4 insertions, 0 deletions
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 191777a8ff..185a97449c 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
@@ -29,4 +29,8 @@
#define nonseekable_open(inode, filp) /* Nothing to do */
#endif
+#if defined(_LINUX_MM_H) && LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10)
+unsigned long vmalloc_to_pfn(void *addr);
+#endif
+
#endif