generic: 5.15: copy config and patch from 5.10
[openwrt/staging/stintel.git] / target / linux / generic / backport-5.15 / 405-v5.13-mtd-parsers-ofpart-make-symbol-bcm4908_partitions_qu.patch
1 From b87b6d2d6f540e29c3f98e1572d64e560d73d6c1 Mon Sep 17 00:00:00 2001
2 From: Wei Yongjun <weiyongjun1@huawei.com>
3 Date: Thu, 4 Mar 2021 06:46:00 +0000
4 Subject: [PATCH] mtd: parsers: ofpart: make symbol 'bcm4908_partitions_quirks'
5 static
6
7 The sparse tool complains as follows:
8
9 drivers/mtd/parsers/ofpart_core.c:25:32: warning:
10 symbol 'bcm4908_partitions_quirks' was not declared. Should it be static?
11
12 This symbol is not used outside of ofpart_core.c, so this
13 commit marks it static.
14
15 Fixes: 457da931b608 ("mtd: parsers: ofpart: support BCM4908 fixed partitions")
16 Reported-by: Hulk Robot <hulkci@huawei.com>
17 Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
18 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
19 Link: https://lore.kernel.org/linux-mtd/20210304064600.3279138-1-weiyongjun1@huawei.com
20 ---
21 drivers/mtd/parsers/ofpart_core.c | 2 +-
22 1 file changed, 1 insertion(+), 1 deletion(-)
23
24 --- a/drivers/mtd/parsers/ofpart_core.c
25 +++ b/drivers/mtd/parsers/ofpart_core.c
26 @@ -22,7 +22,7 @@ struct fixed_partitions_quirks {
27 int (*post_parse)(struct mtd_info *mtd, struct mtd_partition *parts, int nr_parts);
28 };
29
30 -struct fixed_partitions_quirks bcm4908_partitions_quirks = {
31 +static struct fixed_partitions_quirks bcm4908_partitions_quirks = {
32 .post_parse = bcm4908_partitions_post_parse,
33 };
34