mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static
authorYueHaibing <yuehaibing@huawei.com>
Wed, 10 Apr 2019 14:00:35 +0000 (22:00 +0800)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Thu, 18 Apr 2019 06:54:04 +0000 (08:54 +0200)
Fix sparse warning:

drivers/mtd/nand/raw/ingenic/ingenic_nand.c:140:32: warning:
 symbol 'jz4725b_ooblayout_ops' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
drivers/mtd/nand/raw/ingenic/ingenic_nand.c

index ad0c905a03ba2a6e03cc7a7ba89348f042f96858..d7b7c0f13909c2a3e69a5ac6aacdde51e1ee902b 100644 (file)
@@ -137,7 +137,7 @@ static int jz4725b_ooblayout_free(struct mtd_info *mtd, int section,
        return 0;
 }
 
-const struct mtd_ooblayout_ops jz4725b_ooblayout_ops = {
+static const struct mtd_ooblayout_ops jz4725b_ooblayout_ops = {
        .ecc = jz4725b_ooblayout_ecc,
        .free = jz4725b_ooblayout_free,
 };