summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2019-03-21 15:00:09 -0700
committerMike Snitzer <snitzer@redhat.com>2019-04-01 16:16:37 -0400
commit93fc91675a6c84d6ab355188aea398bda2cc51f8 (patch)
tree1d04069acda7c768a75497e650c926c0f6616e3c /drivers/md
parent5efedc9b62b5cf0ccc84ed427a07f0d2485091c4 (diff)
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",