WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] fix compatibility handling of XEN_GUEST_HANDLE_00030

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] fix compatibility handling of XEN_GUEST_HANDLE_00030205
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Mon, 21 Jan 2008 14:39:50 +0000
Delivery-date: Mon, 21 Jan 2008 06:39:44 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Using the plain type doesn't work anymore with recent changes to
XEN_GUEST_HANDLE().

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: ./xen/include/public/xen-compat.h
===================================================================
--- a/xen/include/public/xen-compat.h   2007-11-02 17:34:24.000000000 +0100
+++ b/xen/include/public/xen-compat.h   2008-01-21 14:47:16.000000000 +0100
@@ -45,7 +45,8 @@
 #if __XEN_INTERFACE_VERSION__ >= 0x00030205
 #define XEN_GUEST_HANDLE_00030205(type) XEN_GUEST_HANDLE(type)
 #else
-#define XEN_GUEST_HANDLE_00030205(type) type *
+typedef void void_t;
+#define XEN_GUEST_HANDLE_00030205(type) type##_t *
 #endif
 
 #endif /* __XEN_PUBLIC_XEN_COMPAT_H__ */




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] fix compatibility handling of XEN_GUEST_HANDLE_00030205, Jan Beulich <=