]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
dm init: fix const confusion for dm_allowed_targets array
authorAndi Kleen <ak@linux.intel.com>
Thu, 21 Mar 2019 22:00:09 +0000 (15:00 -0700)
committerMike Snitzer <snitzer@redhat.com>
Mon, 1 Apr 2019 20:16:37 +0000 (16:16 -0400)
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>
drivers/md/dm-init.c

index b53f30f16b4d4f2c02bf9c15e5b801234b8cd9ae..4b76f84424c3c1a73ef3bc3b9605a1486e3bf88b 100644 (file)
@@ -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",