summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorDamien Le Moal <damien.lemoal@wdc.com>2020-07-16 07:38:15 +0300
committerMike Snitzer <snitzer@redhat.com>2020-08-04 22:51:28 +0300
commit90e6bf0659f11f3d8ffa7ae1d7a4fa2af015747a (patch)
treeb8d31fc1c6714e48ecfdf00af5967e4fe6bf110f /drivers/md
parent1aeb6e7cd118b90f1a227c79b26100af6a15960e (diff)
downloadlinux-90e6bf0659f11f3d8ffa7ae1d7a4fa2af015747a.tar.xz
dm init: Set file local variable static
Declare dm_allowed_targets as static to avoid the warning: drivers/md/dm-init.c:39:12: warning: symbol 'dm_allowed_targets' was not declared. Should it be static? when compiling with C=1. Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-init.c b/drivers/md/dm-init.c
index b869316d3722..b0c45c6ebe0b 100644
--- a/drivers/md/dm-init.c
+++ b/drivers/md/dm-init.c
@@ -36,7 +36,7 @@ struct dm_device {
struct list_head list;
};
-const char * const dm_allowed_targets[] __initconst = {
+static const char * const dm_allowed_targets[] __initconst = {
"crypt",
"delay",
"linear",