From 93f7d910c689f60a1fc50e13dcf1ff9655012b8e Mon Sep 17 00:00:00 2001 From: Daniel Verkamp Date: Wed, 10 May 2017 16:08:58 -0700 Subject: [PATCH] nvme/fio_plugin: make file-level variables static These variables are not needed outside of this file. Change-Id: I577db5140fb4156100e72e6219c8121304a9b137 Signed-off-by: Daniel Verkamp --- examples/nvme/fio_plugin/fio_plugin.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/nvme/fio_plugin/fio_plugin.c b/examples/nvme/fio_plugin/fio_plugin.c index 1a991bd0a..a4de82fe9 100644 --- a/examples/nvme/fio_plugin/fio_plugin.c +++ b/examples/nvme/fio_plugin/fio_plugin.c @@ -44,7 +44,7 @@ #define NVME_IO_ALIGN 4096 -bool spdk_env_initialized; +static bool spdk_env_initialized; struct spdk_fio_request { struct io_u *io; @@ -59,9 +59,9 @@ struct spdk_fio_ctrlr { struct spdk_fio_ctrlr *next; }; -struct spdk_fio_ctrlr *ctrlr_g; -int td_count; -pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; +static struct spdk_fio_ctrlr *ctrlr_g; +static int td_count; +static pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER; struct spdk_fio_qpair { struct fio_file *f;