diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-08-17 17:22:08 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-09-15 12:01:55 -0700 |
commit | 3523a805fd2462e7df1c3601c25a7a8df2f8f6a9 (patch) | |
tree | b4e43ad476acab8c3ce984dfab39bf34fe3b730b /drivers/staging/hv/RingBuffer.c | |
parent | f346fdc27384c2dd0f1ffcccb5f701aaf4af75d2 (diff) | |
download | op-kernel-dev-3523a805fd2462e7df1c3601c25a7a8df2f8f6a9.zip op-kernel-dev-3523a805fd2462e7df1c3601c25a7a8df2f8f6a9.tar.gz |
Staging: hv: cleanup coding style issues in RingBuffer.h
Cc: Hank Janssen <hjanssen@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 | 51 |
1 files changed, 11 insertions, 40 deletions
diff --git a/drivers/staging/hv/RingBuffer.c b/drivers/staging/hv/RingBuffer.c index 571f9db..0ea6a0f 100644 --- a/drivers/staging/hv/RingBuffer.c +++ b/drivers/staging/hv/RingBuffer.c @@ -203,8 +203,7 @@ Description: Dump out to console the ring buffer info --*/ -static void -DumpRingInfo(RING_BUFFER_INFO* RingInfo, char *Prefix) +void DumpRingInfo(RING_BUFFER_INFO *RingInfo, char *Prefix) { u32 bytesAvailToWrite; u32 bytesAvailToRead; @@ -249,11 +248,8 @@ Description: Get various debug metrics for the specified ring buffer --*/ -static void -RingBufferGetDebugInfo( - RING_BUFFER_INFO *RingInfo, - RING_BUFFER_DEBUG_INFO *DebugInfo - ) +void RingBufferGetDebugInfo(RING_BUFFER_INFO *RingInfo, + RING_BUFFER_DEBUG_INFO *DebugInfo) { u32 bytesAvailToWrite; u32 bytesAvailToRead; @@ -281,10 +277,7 @@ Description: Get the interrupt mask for the specified ring buffer --*/ -static u32 -GetRingBufferInterruptMask( - RING_BUFFER_INFO *rbi - ) +u32 GetRingBufferInterruptMask(RING_BUFFER_INFO *rbi) { return rbi->RingBuffer->InterruptMask; } @@ -298,12 +291,7 @@ Description: Initialize the ring buffer --*/ -static int -RingBufferInit( - RING_BUFFER_INFO *RingInfo, - void *Buffer, - u32 BufferLen - ) +int RingBufferInit(RING_BUFFER_INFO *RingInfo, void *Buffer, u32 BufferLen) { ASSERT(sizeof(RING_BUFFER) == PAGE_SIZE); @@ -329,10 +317,7 @@ Description: Cleanup the ring buffer --*/ -static void -RingBufferCleanup( - RING_BUFFER_INFO* RingInfo - ) +void RingBufferCleanup(RING_BUFFER_INFO* RingInfo) { } @@ -345,12 +330,8 @@ Description: Write to the ring buffer --*/ -static int -RingBufferWrite( - RING_BUFFER_INFO *OutRingInfo, - struct scatterlist *sglist, - u32 sgcount - ) +int RingBufferWrite(RING_BUFFER_INFO *OutRingInfo, + struct scatterlist *sglist, u32 sgcount) { int i=0; u32 byteAvailToWrite; @@ -436,12 +417,7 @@ Description: Read without advancing the read index --*/ -static int -RingBufferPeek( - RING_BUFFER_INFO* InRingInfo, - void* Buffer, - u32 BufferLen - ) +int RingBufferPeek(RING_BUFFER_INFO *InRingInfo, void *Buffer, u32 BufferLen) { u32 bytesAvailToWrite; u32 bytesAvailToRead; @@ -485,13 +461,8 @@ Description: Read and advance the read index --*/ -static int -RingBufferRead( - RING_BUFFER_INFO* InRingInfo, - void * Buffer, - u32 BufferLen, - u32 Offset - ) +int RingBufferRead(RING_BUFFER_INFO *InRingInfo, void *Buffer, + u32 BufferLen, u32 Offset) { u32 bytesAvailToWrite; u32 bytesAvailToRead; |