]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: hv: remove wrapper function VirtualFree
authorBill Pemberton <wfp5p@virginia.edu>
Wed, 29 Jul 2009 21:00:13 +0000 (17:00 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 19:01:53 +0000 (12:01 -0700)
Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/Hv.c
drivers/staging/hv/include/osd.h
drivers/staging/hv/osd.c

index 36e0d860f14da7728fd979c75cc505c974c7586f..334812fdc84b49e5bfaa392fb500b73d96b2a029 100644 (file)
@@ -21,7 +21,7 @@
  *
  */
 
-
+#include <linux/vmalloc.h>
 #include "include/logging.h"
 #include "VmbusPrivate.h"
 
@@ -330,7 +330,7 @@ Cleanup:
                        WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
                }
 
-               VirtualFree(virtAddr);
+               vfree(virtAddr);
        }
        ret = -1;
        DPRINT_EXIT(VMBUS);
@@ -370,7 +370,7 @@ HvCleanup (
                {
                        hypercallMsr.AsUINT64 = 0;
                        WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
-                       VirtualFree(gHvContext.HypercallPage);
+                       vfree(gHvContext.HypercallPage);
                        gHvContext.HypercallPage = NULL;
                }
        }
index bf010fcec6f88dc481f4e2a13b3c75daaea36988..f8b5411426da6f441575a2dd66ddb983c8748f4b 100644 (file)
@@ -110,7 +110,6 @@ static inline void do_cpuid(unsigned int op, unsigned int *eax, unsigned int *eb
 /* Osd routines */
 
 extern void* VirtualAllocExec(unsigned int size);
-extern void VirtualFree(void* VirtAddr);
 
 extern void* PageAlloc(unsigned int count);
 extern void PageFree(void* page, unsigned int count);
index 1d338721194e5dd19db8f1223f36749d2840c130..f19b9c9ea1e61432f7a04f4a87b08eb3407552b9 100644 (file)
@@ -65,11 +65,6 @@ void* VirtualAllocExec(unsigned int size)
 #endif
 }
 
-void VirtualFree(void* VirtAddr)
-{
-       return vfree(VirtAddr);
-}
-
 void* PageAlloc(unsigned int count)
 {
        void *p;