Commit 774f13ac authored by Heinz Mauelshagen's avatar Heinz Mauelshagen Committed by Mike Snitzer
Browse files

dm: declare variables static when sensible

parent 23fda2ef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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"
+1 −1
Original line number Diff line number Diff line
@@ -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",