summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2019-03-21 23:00:09 +0100
committerMike Snitzer <snitzer@redhat.com>2019-04-01 22:16:37 +0200
commit93fc91675a6c84d6ab355188aea398bda2cc51f8 (patch)
tree1d04069acda7c768a75497e650c926c0f6616e3c /drivers/md
parentdm integrity: make dm_integrity_init and dm_integrity_exit static (diff)
downloadlinux-93fc91675a6c84d6ab355188aea398bda2cc51f8.tar.xz
linux-93fc91675a6c84d6ab355188aea398bda2cc51f8.zip
dm init: fix const confusion for dm_allowed_targets array
A non const pointer to const cannot be marked initconst. Mark the array actually const. Fixes: 6bbc923dfcf5 dm: add support to directly boot to a mapped device Signed-off-by: Andi Kleen <ak@linux.intel.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 b53f30f16b4d..4b76f84424c3 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 *dm_allowed_targets[] __initconst = {
+const char * const dm_allowed_targets[] __initconst = {
"crypt",
"delay",
"linear",