projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e696d3
)
dm raid: make raid_sets symbol static
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 2 Jan 2018 06:18:10 +0000
(06:18 +0000)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/drivers/md/dm-raid.c
b/drivers/md/dm-raid.c
index 7d7dc1723180094da9c2871278bb89f9508c7b3d..d46d1945fbcce35938ad28aa52ffaae8544d2679 100644
(file)
--- 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;