]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit778747045074252d64286a9b17d78b196b74e784
treef09b1169817849c0c1d2ae71524465bf5cdef428
parent539d9ff601b77315b8d1ef1b3653bc301f11378b
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