Staging: hv: Rename ringbuffer_cleanup
authorK. Y. Srinivasan <kys@microsoft.com>
Tue, 10 May 2011 14:55:22 +0000 (07:55 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 11 May 2011 20:49:01 +0000 (13:49 -0700)
Rename ringbuffer_cleanup.

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 43e54b514d4468735cb0bd3e5f17a07b4f0a9828..44b81e897aa25fffad139cda0f89b88b762055a7 100644 (file)
@@ -292,8 +292,8 @@ Cleanup:
        return err;
 
 errorout:
-       ringbuffer_cleanup(&newchannel->outbound);
-       ringbuffer_cleanup(&newchannel->inbound);
+       hv_ringbuffer_cleanup(&newchannel->outbound);
+       hv_ringbuffer_cleanup(&newchannel->inbound);
        free_pages((unsigned long)out,
                get_order(send_ringbuffer_size + recv_ringbuffer_size));
        kfree(openInfo);
@@ -651,8 +651,8 @@ void vmbus_close(struct vmbus_channel *channel)
        /* TODO: Send a msg to release the childRelId */
 
        /* Cleanup the ring buffers for this channel */
-       ringbuffer_cleanup(&channel->outbound);
-       ringbuffer_cleanup(&channel->inbound);
+       hv_ringbuffer_cleanup(&channel->outbound);
+       hv_ringbuffer_cleanup(&channel->inbound);
 
        free_pages((unsigned long)channel->ringbuffer_pages,
                get_order(channel->ringbuffer_pagecount * PAGE_SIZE));
index 9653ab5022ddc239c7945e11f0e612afc5b8f313..9bab40c1682d740dce87a5f0af5ef985b16a499b 100644 (file)
@@ -328,13 +328,13 @@ int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
 /*++
 
 Name:
-       ringbuffer_cleanup()
+       hv_ringbuffer_cleanup()
 
 Description:
        Cleanup the ring buffer
 
 --*/
-void ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info)
+void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info)
 {
 }
 
index 3c66dc040e05df6f894873c8c8b589ef222abed9..66d9a2d5f9c11e90e2da6035425b80052f3c469e 100644 (file)
@@ -79,7 +79,7 @@ struct hv_ring_buffer_debug_info {
 int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
                   u32 buflen);
 
-void ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
+void hv_ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
 
 int ringbuffer_write(struct hv_ring_buffer_info *ring_info,
                    struct scatterlist *sglist,