Commit b7c947f0 authored by Bill Pemberton's avatar Bill Pemberton Committed by Greg Kroah-Hartman

Staging: hv: remove wrapper function VirtualFree

Signed-off-by: default avatarBill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent f4888417
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
* *
*/ */
#include <linux/vmalloc.h>
#include "include/logging.h" #include "include/logging.h"
#include "VmbusPrivate.h" #include "VmbusPrivate.h"
...@@ -330,7 +330,7 @@ HvInit ( ...@@ -330,7 +330,7 @@ HvInit (
WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64); WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
} }
VirtualFree(virtAddr); vfree(virtAddr);
} }
ret = -1; ret = -1;
DPRINT_EXIT(VMBUS); DPRINT_EXIT(VMBUS);
...@@ -370,7 +370,7 @@ HvCleanup ( ...@@ -370,7 +370,7 @@ HvCleanup (
{ {
hypercallMsr.AsUINT64 = 0; hypercallMsr.AsUINT64 = 0;
WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64); WriteMsr(HV_X64_MSR_HYPERCALL, hypercallMsr.AsUINT64);
VirtualFree(gHvContext.HypercallPage); vfree(gHvContext.HypercallPage);
gHvContext.HypercallPage = NULL; gHvContext.HypercallPage = NULL;
} }
} }
......
...@@ -110,7 +110,6 @@ static inline void do_cpuid(unsigned int op, unsigned int *eax, unsigned int *eb ...@@ -110,7 +110,6 @@ static inline void do_cpuid(unsigned int op, unsigned int *eax, unsigned int *eb
/* Osd routines */ /* Osd routines */
extern void* VirtualAllocExec(unsigned int size); extern void* VirtualAllocExec(unsigned int size);
extern void VirtualFree(void* VirtAddr);
extern void* PageAlloc(unsigned int count); extern void* PageAlloc(unsigned int count);
extern void PageFree(void* page, unsigned int count); extern void PageFree(void* page, unsigned int count);
......
...@@ -65,11 +65,6 @@ void* VirtualAllocExec(unsigned int size) ...@@ -65,11 +65,6 @@ void* VirtualAllocExec(unsigned int size)
#endif #endif
} }
void VirtualFree(void* VirtAddr)
{
return vfree(VirtAddr);
}
void* PageAlloc(unsigned int count) void* PageAlloc(unsigned int count)
{ {
void *p; void *p;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment