Commit 90e6bf06 authored by Damien Le Moal's avatar Damien Le Moal Committed by Mike Snitzer

dm init: Set file local variable static

Declare dm_allowed_targets as static to avoid the warning:

drivers/md/dm-init.c:39:12: warning: symbol 'dm_allowed_targets' was
not declared. Should it be static?

when compiling with C=1.
Signed-off-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 1aeb6e7c
......@@ -36,7 +36,7 @@ struct dm_device {
struct list_head list;
};
const char * const dm_allowed_targets[] __initconst = {
static 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