Skip to contentSkip to conversation

mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static

PATCH Applied 'Wei Yongjun 3 participants 3 messages Mar 4, 2021 – Mar 11, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static

From: Wei Yongjun <[email protected]>

The sparse tool complains as follows:

drivers/mtd/parsers/ofpart_core.c:25:32: warning:
symbol 'bcm4908_partitions_quirks' was not declared. Should it be static?

This symbol is not used outside of ofpart_core.c, so this commit marks it static.

Fixes 457da931b608 ("mtd: parsers: ofpart: support BCM4908 fixed partitions")
---
 drivers/mtd/parsers/ofpart_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mtd/parsers/ofpart_core.c +1 -1
index 258c06a42283..e9cb9ca28813 100644
@@ -22,7 +22,7 @@ struct fixed_partitions_quirks {
 	int (*post_parse)(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts);
 };
 
-struct fixed_partitions_quirks bcm4908_partitions_quirks = {
+static struct fixed_partitions_quirks bcm4908_partitions_quirks = {
 	.post_parse = bcm4908_partitions_post_parse,
 };
 
#1 lore raw
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

The sparse tool complains as follows:

drivers/mtd/parsers/ofpart_core.c:25:32: warning:
symbol 'bcm4908_partitions_quirks' was not declared. Should it be static?

Quoted 6 lines

This symbol is not used outside of ofpart_core.c, so this commit marks it static.

Fixes 457da931b608 ("mtd: parsers: ofpart: support BCM4908 fixed partitions")

Looks good ofc, thanks.

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

maintainer Applied
#2 lore raw
In reply to 'Wei Yongjun
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

The sparse tool complains as follows:

drivers/mtd/parsers/ofpart_core.c:25:32: warning:
symbol 'bcm4908_partitions_quirks' was not declared. Should it be static?

Quoted 6 lines

This symbol is not used outside of ofpart_core.c, so this commit marks it static.

Fixes 457da931b608 ("mtd: parsers: ofpart: support BCM4908 fixed partitions")

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel