diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-14 15:12:46 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:46 -0700 |
commit | c4b0bc94828a86cfb6a975b0e0d92dc1cd389565 (patch) | |
tree | d67ad0683d5f196baa70e9040021dbac0bf8e2fe /drivers/staging/hv/Hv.c | |
parent | b509bf5badcd30b1c163349a87a56933b59663e1 (diff) | |
download | op-kernel-dev-c4b0bc94828a86cfb6a975b0e0d92dc1cd389565.zip op-kernel-dev-c4b0bc94828a86cfb6a975b0e0d92dc1cd389565.tar.gz |
Staging: hv: remove ULONG_PTR typedef
The ULONG_PTR typedef is now removed from the Hyper-V driver code.
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/hv/Hv.c')
-rw-r--r-- | drivers/staging/hv/Hv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index a8c7d73..5862575 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c @@ -233,7 +233,7 @@ HvInit ( int maxLeaf; HV_X64_MSR_HYPERCALL_CONTENTS hypercallMsr; void* virtAddr=0; - ULONG_PTR physAddr=0; + unsigned long physAddr=0; DPRINT_ENTER(VMBUS); @@ -311,7 +311,7 @@ HvInit ( goto Cleanup; } - gHvContext.SignalEventParam = (PHV_INPUT_SIGNAL_EVENT)(ALIGN_UP((ULONG_PTR)gHvContext.SignalEventBuffer, HV_HYPERCALL_PARAM_ALIGN)); + gHvContext.SignalEventParam = (PHV_INPUT_SIGNAL_EVENT)(ALIGN_UP((unsigned long)gHvContext.SignalEventBuffer, HV_HYPERCALL_PARAM_ALIGN)); gHvContext.SignalEventParam->ConnectionId.Asu32 = 0; gHvContext.SignalEventParam->ConnectionId.u.Id = VMBUS_EVENT_CONNECTION_ID; gHvContext.SignalEventParam->FlagNumber = 0; @@ -407,14 +407,14 @@ HvPostMessage( PHV_INPUT_POST_MESSAGE alignedMsg; HV_STATUS status; - ULONG_PTR addr; + unsigned long addr; if (payloadSize > HV_MESSAGE_PAYLOAD_BYTE_COUNT) { return -1; } - addr = (ULONG_PTR)MemAllocAtomic(sizeof(struct alignedInput)); + addr = (unsigned long)MemAllocAtomic(sizeof(struct alignedInput)); if (!addr) { |