diff options
author | Greg Kroah-Hartman | 2009-07-15 00:10:26 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2009-09-15 21:01:46 +0200 |
commit | 59471438ccbebafb0d63baf8b818d0ca692f882a (patch) | |
tree | df7f285d71108dc1b382b9d4a423e9588dc51135 /drivers/staging/hv/RingBuffer.c | |
parent | Staging: hv: remove UINT32 and INT32 typedefs (diff) | |
download | kernel-qcow2-linux-59471438ccbebafb0d63baf8b818d0ca692f882a.tar.gz kernel-qcow2-linux-59471438ccbebafb0d63baf8b818d0ca692f882a.tar.xz kernel-qcow2-linux-59471438ccbebafb0d63baf8b818d0ca692f882a.zip |
Staging: hv: remove UINT64 and INT64 and UCHAR typedefs
The UINT64 and INT64 and UCHAR typedefs are 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/RingBuffer.c')
-rw-r--r-- | drivers/staging/hv/RingBuffer.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index 4a05f7d7d2df..34d4adaa19b9 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c @@ -184,13 +184,13 @@ Name: GetRingBufferIndices() Description: - Get the read and write indices as UINT64 of the specified ring buffer + Get the read and write indices as u64 of the specified ring buffer --*/ -static inline UINT64 +static inline u64 GetRingBufferIndices(RING_BUFFER_INFO* RingInfo) { - return ((UINT64)RingInfo->RingBuffer->WriteIndex << 32) || RingInfo->RingBuffer->ReadIndex; + return ((u64)RingInfo->RingBuffer->WriteIndex << 32) || RingInfo->RingBuffer->ReadIndex; } @@ -359,7 +359,7 @@ RingBufferWrite( u32 totalBytesToWrite=0; volatile u32 nextWriteLocation; - UINT64 prevIndices=0; + u64 prevIndices=0; DPRINT_ENTER(VMBUS); @@ -368,7 +368,7 @@ RingBufferWrite( totalBytesToWrite += SgBuffers[i].Length; } - totalBytesToWrite += sizeof(UINT64); + totalBytesToWrite += sizeof(u64); SpinlockAcquire(OutRingInfo->RingLock); @@ -408,7 +408,7 @@ RingBufferWrite( nextWriteLocation = CopyToRingBuffer(OutRingInfo, nextWriteLocation, &prevIndices, - sizeof(UINT64)); + sizeof(u64)); // Make sure we flush all writes before updating the writeIndex MemoryFence(); @@ -494,7 +494,7 @@ RingBufferRead( u32 bytesAvailToWrite; u32 bytesAvailToRead; u32 nextReadLocation=0; - UINT64 prevIndices=0; + u64 prevIndices=0; ASSERT(BufferLen > 0); @@ -525,7 +525,7 @@ RingBufferRead( nextReadLocation = CopyFromRingBuffer(InRingInfo, &prevIndices, - sizeof(UINT64), + sizeof(u64), nextReadLocation); // Make sure all reads are done before we update the read index since |