Skip to content

Commit 90e6bf0

Browse files
damien-lemoalsnitm
authored andcommitted
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: Damien Le Moal <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 1aeb6e7 commit 90e6bf0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct dm_device {
3636
struct list_head list;
3737
};
3838

39-
const char * const dm_allowed_targets[] __initconst = {
39+
static const char * const dm_allowed_targets[] __initconst = {
4040
"crypt",
4141
"delay",
4242
"linear",

0 commit comments

Comments
 (0)