]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: hv: Rename ringbuffer_read
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:25 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:49:04 +0000 (13:49 -0700)
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/channel.c
drivers/staging/hv/ring_buffer.c
drivers/staging/hv/ring_buffer.h

index d6255178fed03acaa84d050d99bf61b8629f2fb9..9f8bed284dec49e15c7dccb1facad88e727e228f 100644 (file)
@@ -911,7 +911,7 @@ int vmbus_recvpacket(struct vmbus_channel *channel, void *buffer,
        *requestid = desc.trans_id;
 
        /* Copy over the packet to the user buffer */
-       ret = ringbuffer_read(&channel->inbound, buffer, userlen,
+       ret = hv_ringbuffer_read(&channel->inbound, buffer, userlen,
                             (desc.offset8 << 3));
 
        spin_unlock_irqrestore(&channel->inbound_lock, flags);
@@ -964,7 +964,7 @@ int vmbus_recvpacket_raw(struct vmbus_channel *channel, void *buffer,
        *requestid = desc.trans_id;
 
        /* Copy over the entire packet to the user buffer */
-       ret = ringbuffer_read(&channel->inbound, buffer, packetlen, 0);
+       ret = hv_ringbuffer_read(&channel->inbound, buffer, packetlen, 0);
 
        spin_unlock_irqrestore(&channel->inbound_lock, flags);
        return 0;
index bf04397c299c8ab625f0750c73039532f9f79283..2a0505939f759d75ca509c526767e69a130e1df3 100644 (file)
@@ -468,13 +468,13 @@ int hv_ringbuffer_peek(struct hv_ring_buffer_info *Inring_info,
 /*++
 
 Name:
-       ringbuffer_read()
+       hv_ringbuffer_read()
 
 Description:
        Read and advance the read index
 
 --*/
-int ringbuffer_read(struct hv_ring_buffer_info *inring_info, void *buffer,
+int hv_ringbuffer_read(struct hv_ring_buffer_info *inring_info, void *buffer,
                   u32 buflen, u32 offset)
 {
        u32 bytes_avail_towrite;
index c684d9718c64ef1c445d286d66a46316f01d2e8f..0ebf3be7bd6977ceb9f41c9abdeacdf8eec56fa4 100644 (file)
@@ -88,7 +88,7 @@ int hv_ringbuffer_write(struct hv_ring_buffer_info *ring_info,
 int hv_ringbuffer_peek(struct hv_ring_buffer_info *ring_info, void *buffer,
                   u32 buflen);
 
-int ringbuffer_read(struct hv_ring_buffer_info *ring_info,
+int hv_ringbuffer_read(struct hv_ring_buffer_info *ring_info,
                   void *buffer,
                   u32 buflen,
                   u32 offset);