From: Tokunori Ikegami Date: Fri, 27 Jan 2023 20:58:38 +0000 (+0900) Subject: nvme: Move static variable definitions to top of file X-Git-Tag: v2.3~3^2~2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=1cc926e51c7155c36a84f19b9ce31419e42776fd;p=users%2Fsagi%2Fnvme-cli.git nvme: Move static variable definitions to top of file Signed-off-by: Tokunori Ikegami --- 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[] = {'-', '\\', '|', '/' };