diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2016-12-06 04:57:54 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2016-12-15 05:59:17 +0100 |
commit | 2f952c0105d14bd46bb6d6a3cc03ad789a381228 (patch) | |
tree | 9daa05107cdff70182a24503aa127f06480aab44 /drivers/vhost | |
parent | drm/virtio: annotate virtio_gpu_queue_ctrl_buffer_locked (diff) | |
download | linux-2f952c0105d14bd46bb6d6a3cc03ad789a381228.tar.xz linux-2f952c0105d14bd46bb6d6a3cc03ad789a381228.zip |
vhost: make interval tree static inline
vhost_umem_interval_tree is only used locally within vhost.c, mark it
static. As some functions generated go unused, this triggers warnings
unless we also mark it inline.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vhost')
-rw-r--r-- | drivers/vhost/vhost.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 266354390c8f..e4825222eb06 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -49,7 +49,7 @@ enum { INTERVAL_TREE_DEFINE(struct vhost_umem_node, rb, __u64, __subtree_last, - START, LAST, , vhost_umem_interval_tree); + START, LAST, static inline, vhost_umem_interval_tree); #ifdef CONFIG_VHOST_CROSS_ENDIAN_LEGACY static void vhost_disable_cross_endian(struct vhost_virtqueue *vq) |