dm raid: make raid_sets symbol static
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 2 Jan 2018 06:18:10 +0000 (06:18 +0000)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jan 2018 14:16:05 +0000 (09:16 -0500)
Fixes the following sparse warning:

drivers/md/dm-raid.c:33:1: warning:
 symbol 'raid_sets' was not declared. Should it be static?

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-raid.c

index 7d7dc17..d46d194 100644 (file)
@@ -30,7 +30,7 @@
 #define        MIN_RAID456_JOURNAL_SPACE (4*2048)
 
 /* Global list of all raid sets */
-LIST_HEAD(raid_sets);
+static LIST_HEAD(raid_sets);
 
 static bool devices_handle_discard_safely = false;