diff options
author | Heinz Mauelshagen <heinzm@redhat.com> | 2023-02-08 01:15:36 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@kernel.org> | 2023-02-14 22:23:07 +0300 |
commit | 774f13ac2b567207f04eb34d25188f5daec57f9e (patch) | |
tree | 488fef51abe80c81491bc69c9c31383d031e9751 | |
parent | 23fda2effbb1f2f1d2fb0640a4729e6d08ad6e6e (diff) | |
download | linux-774f13ac2b567207f04eb34d25188f5daec57f9e.tar.xz |
dm: declare variables static when sensible
Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
-rw-r--r-- | drivers/md/dm-cache-target.c | 2 | ||||
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c index 6ee3599f9400..23195701dc15 100644 --- a/drivers/md/dm-cache-target.c +++ b/drivers/md/dm-cache-target.c @@ -859,7 +859,7 @@ static const char *cache_device_name(struct cache *cache) static void notify_mode_switch(struct cache *cache, enum cache_metadata_mode mode) { - const char *descs[] = { + static const char *descs[] = { "write", "read-only", "fail" diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 0e7f4d0c5994..affd91a53042 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -294,7 +294,7 @@ static enum pool_mode get_pool_mode(struct pool *pool) static void notify_of_pool_mode_change(struct pool *pool) { - const char *descs[] = { + static const char *descs[] = { "write", "out-of-data-space", "read-only", |