Skip to content

Commit 774f13a

Browse files
mauelshaMike Snitzer
authored andcommitted
dm: declare variables static when sensible
Signed-off-by: Heinz Mauelshagen <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 23fda2e commit 774f13a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/md/dm-cache-target.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,7 @@ static const char *cache_device_name(struct cache *cache)
859859

860860
static void notify_mode_switch(struct cache *cache, enum cache_metadata_mode mode)
861861
{
862-
const char *descs[] = {
862+
static const char *descs[] = {
863863
"write",
864864
"read-only",
865865
"fail"

drivers/md/dm-thin.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ static enum pool_mode get_pool_mode(struct pool *pool)
294294

295295
static void notify_of_pool_mode_change(struct pool *pool)
296296
{
297-
const char *descs[] = {
297+
static const char *descs[] = {
298298
"write",
299299
"out-of-data-space",
300300
"read-only",

0 commit comments

Comments
 (0)