]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
xen public: make mmuext_op's vcpumask field const
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 14 May 2009 14:46:04 +0000 (15:46 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 14 May 2009 14:46:04 +0000 (15:46 +0100)
Linux started to pass around pointers to 'const cpumask_t' a while ago,
and passing such a pointer to set_xen_guest_handle() requires that the
field be a handle for a constant type in order to avoid compiler
warnings.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/include/public/xen.h

index fb03d0c22ca7cfe572aff1a476c226e117c665e9..524118b6d7adee33b466447c3beff004f3098327 100644 (file)
@@ -272,9 +272,9 @@ struct mmuext_op {
         unsigned int nr_ents;
         /* TLB_FLUSH_MULTI, INVLPG_MULTI */
 #if __XEN_INTERFACE_VERSION__ >= 0x00030205
-        XEN_GUEST_HANDLE(void) vcpumask;
+        XEN_GUEST_HANDLE(const_void) vcpumask;
 #else
-        void *vcpumask;
+        const void *vcpumask;
 #endif
         /* COPY_PAGE */
         xen_pfn_t src_mfn;