projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aeb6e7
)
dm init: Set file local variable static
author
Damien Le Moal
<damien.lemoal@wdc.com>
Thu, 16 Jul 2020 04:38:15 +0000
(13:38 +0900)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 4 Aug 2020 19:51:28 +0000
(15:51 -0400)
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 <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-init.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/md/dm-init.c
b/drivers/md/dm-init.c
index b869316d372298878912a2c1abb568c4cfc34a0b..b0c45c6ebe0bf0c28da7ea29718e59ac44e8f939 100644
(file)
--- 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",