OSDN Git Service

vmbus: make hv_get_ringbuffer_availbytes local
authorStephen Hemminger <stephen@networkplumber.org>
Fri, 1 Dec 2017 19:01:49 +0000 (11:01 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Dec 2017 15:10:02 +0000 (10:10 -0500)
commit0487426fedf7cf800115bac7ea391de1e2e0fa5f
treef09b1169817849c0c1d2ae71524465bf5cdef428
parentf5a2255010b0bde6df5a9060dbc826ad14ad4c44
vmbus: make hv_get_ringbuffer_availbytes local

The last use of hv_get_ringbuffer_availbytes in drivers is now
gone. Only used by the debug info routine so make it static. Also, add
READ_ONCE() to avoid any possible issues with potentially volatile
index values.

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/hv/ring_buffer.c
include/linux/hyperv.h