From 1cc926e51c7155c36a84f19b9ce31419e42776fd Mon Sep 17 00:00:00 2001 From: Tokunori Ikegami Date: Sat, 28 Jan 2023 05:58:38 +0900 Subject: [PATCH] nvme: Move static variable definitions to top of file Signed-off-by: Tokunori Ikegami --- nvme.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/nvme.c b/nvme.c index 832f79e3..e4f376e5 100644 --- 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[] = {'-', '\\', '|', '/' }; -- 2.50.1