dm: declare variables static when sensible

Signed-off-by: Heinz Mauelshagen <heinzm@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
This commit is contained in:
Heinz Mauelshagen 2023-02-07 23:15:36 +01:00 committed by Mike Snitzer
parent 23fda2effb
commit 774f13ac2b
2 changed files with 2 additions and 2 deletions

View File

@ -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"

View File

@ -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",