From: Damien Le Moal Date: Thu, 16 Jul 2020 04:38:15 +0000 (+0900) Subject: dm init: Set file local variable static X-Git-Tag: v5.9-rc1~93^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=90e6bf0659f11f3d8ffa7ae1d7a4fa2af015747a;p=thirdparty%2Flinux.git 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 Signed-off-by: Mike Snitzer --- diff --git a/drivers/md/dm-init.c b/drivers/md/dm-init.c index b869316d37229..b0c45c6ebe0bf 100644 --- a/drivers/md/dm-init.c +++ b/drivers/md/dm-init.c @@ -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",