From 313e5c307318d849cf741316e37e58a173858fbe Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Tue, 9 Aug 2016 02:27:28 +0900 Subject: [PATCH] Make local const string array static like it is in io_ddir_name(). Signed-off-by: Tomohiro Kusumi Signed-off-by: Jens Axboe --- io_ddir.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/io_ddir.h b/io_ddir.h index 763e8265..2141119a 100644 --- a/io_ddir.h +++ b/io_ddir.h @@ -61,7 +61,7 @@ static inline int ddir_rw(enum fio_ddir ddir) static inline const char *ddir_str(enum td_ddir ddir) { - const char *__str[] = { NULL, "read", "write", "rw", NULL, + static const char *__str[] = { NULL, "read", "write", "rw", NULL, "randread", "randwrite", "randrw", "trim", NULL, NULL, NULL, "randtrim" }; -- 2.25.1