Staging: hv: Rename the function ringbuffer_init
Rename the function ringbuffer_init to not pollute the namespace. 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>
This commit is contained in:
Родитель
1745ec504a
Коммит
72a95cbcbc
|
@ -201,13 +201,16 @@ int vmbus_open(struct vmbus_channel *newchannel, u32 send_ringbuffer_size,
|
||||||
newchannel->ringbuffer_pagecount = (send_ringbuffer_size +
|
newchannel->ringbuffer_pagecount = (send_ringbuffer_size +
|
||||||
recv_ringbuffer_size) >> PAGE_SHIFT;
|
recv_ringbuffer_size) >> PAGE_SHIFT;
|
||||||
|
|
||||||
ret = ringbuffer_init(&newchannel->outbound, out, send_ringbuffer_size);
|
ret = hv_ringbuffer_init(
|
||||||
|
&newchannel->outbound, out, send_ringbuffer_size);
|
||||||
|
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
err = ret;
|
err = ret;
|
||||||
goto errorout;
|
goto errorout;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = ringbuffer_init(&newchannel->inbound, in, recv_ringbuffer_size);
|
ret = hv_ringbuffer_init(
|
||||||
|
&newchannel->inbound, in, recv_ringbuffer_size);
|
||||||
if (ret != 0) {
|
if (ret != 0) {
|
||||||
err = ret;
|
err = ret;
|
||||||
goto errorout;
|
goto errorout;
|
||||||
|
|
|
@ -299,13 +299,13 @@ u32 get_ringbuffer_interrupt_mask(struct hv_ring_buffer_info *rbi)
|
||||||
/*++
|
/*++
|
||||||
|
|
||||||
Name:
|
Name:
|
||||||
ringbuffer_init()
|
hv_ringbuffer_init()
|
||||||
|
|
||||||
Description:
|
Description:
|
||||||
Initialize the ring buffer
|
Initialize the ring buffer
|
||||||
|
|
||||||
--*/
|
--*/
|
||||||
int ringbuffer_init(struct hv_ring_buffer_info *ring_info,
|
int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info,
|
||||||
void *buffer, u32 buflen)
|
void *buffer, u32 buflen)
|
||||||
{
|
{
|
||||||
if (sizeof(struct hv_ring_buffer) != PAGE_SIZE)
|
if (sizeof(struct hv_ring_buffer) != PAGE_SIZE)
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
* Authors:
|
* Authors:
|
||||||
* Haiyang Zhang <haiyangz@microsoft.com>
|
* Haiyang Zhang <haiyangz@microsoft.com>
|
||||||
* Hank Janssen <hjanssen@microsoft.com>
|
* Hank Janssen <hjanssen@microsoft.com>
|
||||||
|
* K. Y. Srinivasan <kys@microsoft.com>
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -75,7 +76,7 @@ struct hv_ring_buffer_debug_info {
|
||||||
/* Interface */
|
/* Interface */
|
||||||
|
|
||||||
|
|
||||||
int ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
|
int hv_ringbuffer_init(struct hv_ring_buffer_info *ring_info, void *buffer,
|
||||||
u32 buflen);
|
u32 buflen);
|
||||||
|
|
||||||
void ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
|
void ringbuffer_cleanup(struct hv_ring_buffer_info *ring_info);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче