Commit 93fc9167 authored by Andi Kleen's avatar Andi Kleen Committed by Mike Snitzer

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: 6bbc923d dm: add support to directly boot to a mapped device
Signed-off-by: default avatarAndi Kleen <ak@linux.intel.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 5efedc9b
......@@ -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",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment