From c0a54a76061aa7bdccbc81224070eb1caaa93521 Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Mon, 6 Mar 2017 13:27:24 -0700 Subject: [PATCH] vhost: make dpdk_vid_mapping and g_need_iovecs static They are not used outside of their respective files. Change-Id: I754834e7354caec877cd2fe193e56854e5a34e20 Signed-off-by: Daniel Verkamp --- lib/vhost/task.c | 2 +- lib/vhost/vhost.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/vhost/task.c b/lib/vhost/task.c index c9a27c6b24..615eb9a67d 100644 --- a/lib/vhost/task.c +++ b/lib/vhost/task.c @@ -52,7 +52,7 @@ typedef TAILQ_HEAD(, spdk_vhost_task) need_iovecs_tailq_t; static struct rte_mempool *g_task_pool; static struct rte_mempool *g_iov_buffer_pool; -need_iovecs_tailq_t g_need_iovecs[RTE_MAX_LCORE]; +static need_iovecs_tailq_t g_need_iovecs[RTE_MAX_LCORE]; void spdk_vhost_task_put(struct spdk_vhost_task *task) diff --git a/lib/vhost/vhost.c b/lib/vhost/vhost.c index a8d7ea7a99..f08af822cb 100644 --- a/lib/vhost/vhost.c +++ b/lib/vhost/vhost.c @@ -98,7 +98,8 @@ struct spdk_vhost_scsi_ctrlr { } __rte_cache_aligned; /* This maps from the integer index passed by DPDK to the our controller representation. */ -struct spdk_vhost_scsi_ctrlr *dpdk_vid_mapping[MAX_VHOST_DEVICE]; /* MAX_VHOST_DEVICE from DPDK. */ +/* MAX_VHOST_DEVICE from DPDK. */ +static struct spdk_vhost_scsi_ctrlr *dpdk_vid_mapping[MAX_VHOST_DEVICE]; /* * Get available requests from avail ring.