tmem: fix public header file
authorBob Liu <bob.liu@oracle.com>
Fri, 6 Dec 2013 14:58:00 +0000 (15:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 6 Dec 2013 14:58:00 +0000 (15:58 +0100)
Commit 006a687ba4de74d7933c09b43872abc19f126c63 dropped typedef tmem_cli_mfn_t
from public tmem.h which may cause some problem.
This patch added tmem_cli_mfn_t back with #ifdef __XEN_INTERFACE_VERSION__
around.

Signed-off-by: Bob Liu <bob.liu@oracle.com>
Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
xen/include/public/tmem.h

index dd685ee20f2fb5011a92d9dcb62237ac98aaeaa0..5eb2fb467f1c3f47c22cdaa91a7f2335d492cbf9 100644 (file)
@@ -95,6 +95,9 @@
 
 
 #ifndef __ASSEMBLY__
+#if __XEN_INTERFACE_VERSION__ < 0x00040400
+typedef xen_pfn_t tmem_cli_mfn_t;
+#endif
 typedef XEN_GUEST_HANDLE(char) tmem_cli_va_t;
 struct tmem_op {
     uint32_t cmd;