]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks' static
authorWei Yongjun <weiyongjun1@huawei.com>
Thu, 4 Mar 2021 06:46:00 +0000 (06:46 +0000)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 11 Mar 2021 11:01:37 +0000 (12:01 +0100)
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
drivers/mtd/parsers/ofpart_core.c

index 02658298d99aeb058a1d4b55a3ea7818b037a192..2cef527dd976042c3fef123445785c099e4f4aa6 100644 (file)
@@ -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,
 };