1
0
Fork 0

Staging: hv: remove wrapper function VirtualFree

Signed-off-by: Bill Pemberton <wfp5p@virginia.edu>
Cc: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
hifive-unleashed-5.1
Bill Pemberton 2009-07-29 17:00:13 -04:00 committed by Greg Kroah-Hartman
parent f488841708
commit b7c947f048
3 changed files with 3 additions and 9 deletions

View 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;
}
}

View 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);

View 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;