summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2018-01-02 06:18:10 +0000
committerMike Snitzer <snitzer@redhat.com>2018-01-17 09:16:05 -0500
commit67ac901c553bab4bcc05ed1253829bf462c26b1f (patch)
tree2816ac830ed0965469c299bf527770ab61141293 /drivers/md
parent0e696d385d4be83055d8281f7e089a1b9ea18a1a (diff)
downloadop-kernel-dev-67ac901c553bab4bcc05ed1253829bf462c26b1f.zip
op-kernel-dev-67ac901c553bab4bcc05ed1253829bf462c26b1f.tar.gz
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 7d7dc172..d46d194 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;
OpenPOWER on IntegriCloud