summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorWei Yongjun2018-01-02 07:18:10 +0100
committerMike Snitzer2018-01-17 15:16:05 +0100
commit67ac901c553bab4bcc05ed1253829bf462c26b1f (patch)
tree2816ac830ed0965469c299bf527770ab61141293 /drivers/md
parentdm bufio: eliminate unnecessary labels in dm_bufio_client_create() (diff)
downloadkernel-qcow2-linux-67ac901c553bab4bcc05ed1253829bf462c26b1f.tar.gz
kernel-qcow2-linux-67ac901c553bab4bcc05ed1253829bf462c26b1f.tar.xz
kernel-qcow2-linux-67ac901c553bab4bcc05ed1253829bf462c26b1f.zip
dm raid: make raid_sets symbol static
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-raid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-raid.c b/drivers/md/dm-raid.c
index 7d7dc1723180..d46d1945fbcc 100644
--- a/drivers/md/dm-raid.c
+++ b/drivers/md/dm-raid.c
@@ -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;