Skip to content

Commit

Permalink
dm init: fix const confusion for dm_allowed_targets array
Browse files Browse the repository at this point in the history
A non const pointer to const cannot be marked initconst.
Mark the array actually const.

Fixes: 6bbc923 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>
  • Loading branch information
Andi Kleen authored and Mike Snitzer committed Apr 1, 2019
1 parent 5efedc9 commit 93fc916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 93fc916

Please sign in to comment.