summaryrefslogtreecommitdiff
path: root/drivers/mtd
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2021-03-04 09:46:00 +0300
committerMiquel Raynal <miquel.raynal@bootlin.com>2021-03-11 14:01:37 +0300
commitb87b6d2d6f540e29c3f98e1572d64e560d73d6c1 (patch)
tree8af6ba8521464330dd6a68882cba7125c9849ea4 /drivers/mtd
parent8f62f59f83c3bc902af91c80732cfcd17e0d7069 (diff)
downloadlinux-b87b6d2d6f540e29c3f98e1572d64e560d73d6c1.tar.xz
mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static
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") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20210304064600.3279138-1-weiyongjun1@huawei.com
Diffstat (limited to 'drivers/mtd')
-rw-r--r--drivers/mtd/parsers/ofpart_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/parsers/ofpart_core.c b/drivers/mtd/parsers/ofpart_core.c
index 02658298d99a..2cef527dd976 100644
--- a/drivers/mtd/parsers/ofpart_core.c
+++ b/drivers/mtd/parsers/ofpart_core.c
@@ -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,
};