Skip to contentSkip to conversation

Fix build error for PV guests

PATCH New Christoph Egger 1 participant 1 message Sep 17, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix build error for PV guests

DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for XEN_GUEST_HANDLE_64.

This fixes a build error for PV guests (OpenBSD, NetBSD) where the use of XEN_GUEST_HANDLE_64(uint8_t) leads to a build error because uint8_t is a #define and not a typedef.

Signature · 12 lines
AMD Saxony, Dresden, Germany
Operating System Research Center

Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
   Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
   AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
   Dr. Hans-R. Deppe, Thomas McCoy
xen/include/public/arch-x86/xen-x86_32.h +2 -1
diff -r a00cc97b392a xen/include/public/arch-x86/xen-x86_32.h
@@ -119,7 +119,8 @@
          (hnd).p = val;                                     \
     } while ( 0 )
 #define uint64_aligned_t uint64_t __attribute__((aligned(8)))
-#define XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name
+#define __XEN_GUEST_HANDLE_64(name) __guest_handle_64_ ## name
+#define XEN_GUEST_HANDLE_64(name) __XEN_GUEST_HANDLE_64(name)
 #endif
 
 #ifndef __ASSEMBLY__

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel