]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
vhost: make interval tree static inline
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 6 Dec 2016 03:57:54 +0000 (05:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 04:59:17 +0000 (06:59 +0200)
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>
drivers/vhost/vhost.c

index 266354390c8fae0490ef9ee24919e3ec72f1cb2a..e4825222eb0637500223d2151337d75e9cc8d72c 100644 (file)
@@ -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)