mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 18:36:00 +00:00
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:
parent
23fda2effb
commit
774f13ac2b
@ -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"
|
||||
|
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user