]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme: Move static variable definitions to top of file
authorTokunori Ikegami <ikegami.t@gmail.com>
Fri, 27 Jan 2023 20:58:38 +0000 (05:58 +0900)
committerDaniel Wagner <dwagner@suse.de>
Mon, 30 Jan 2023 12:36:02 +0000 (13:36 +0100)
Signed-off-by: Tokunori Ikegami <ikegami.t@gmail.com>
nvme.c

diff --git a/nvme.c b/nvme.c
index 832f79e3e7c354028ff8af43df195e59e1f13bf9..e4f376e50a0c5c8bacf2354e8e0eabdc297062b2 100644 (file)
--- a/nvme.c
+++ b/nvme.c
@@ -152,6 +152,8 @@ static const char *timeout = "timeout value, in milliseconds";
 static const char *uuid_index = "UUID index";
 static const char *uuid_index_specify = "specify uuid index";
 static const char *verbose = "Increase output verbosity";
+static const char dash[51] = {[0 ... 49] = '=', '\0'};
+static const char space[51] = {[0 ... 49] = ' ', '\0'};
 
 static void *mmap_registers(nvme_root_t r, struct nvme_dev *dev);
 
@@ -4181,9 +4183,6 @@ static int sleep_self_test(unsigned int seconds)
        return 0;
 }
 
-static const char dash[51] = {[0 ... 49] = '=', '\0'};
-static const char space[51] = {[0 ... 49] = ' ', '\0'};
-
 static int wait_self_test(struct nvme_dev *dev)
 {
        static const char spin[] = {'-', '\\', '|', '/' };