]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix HGFS build
authorVMware, Inc <>
Mon, 21 May 2012 22:26:42 +0000 (15:26 -0700)
committerDmitry Torokhov <dtor@vmware.com>
Tue, 22 May 2012 18:57:13 +0000 (11:57 -0700)
For some reason gcc options for hgfs are not happy with typecast
of 'const void *' to 'volatile void *'.  I have no idea why, as I
thought that that is what casts are for, but for now let's do not
typecast that thing.  That should keep HGFS happy.

Signed-off-by: Dmitry Torokhov <dtor@vmware.com>
open-vm-tools/lib/include/vm_basic_asm.h

index 95699a5deac91aafcb8b30bc409065400afb9687..49725047ff99b6ecb5509abc800c6d6619ef75af 100644 (file)
@@ -1194,7 +1194,7 @@ TestBitVector(const void *var, int32 index)
       "bt %2, %1;"
       "setc %0"
       : "=rm" (bit)
-      : "m" (*(volatile uint32 *)var), "rI" (index)
+      : "m" (*(const uint32 *)var), "rI" (index)
       : "cc"
    );
    return bit;