diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-04-10 22:00:35 +0800 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-04-18 08:54:04 +0200 |
commit | cf3bbe67be154d9658a7b8644a23a05e6246ea79 (patch) | |
tree | 27c5934bdfd6b563edfbc104c20298db8544e7dc /drivers/mtd/nand | |
parent | 09e030d975490a23f759e44e54520307b8c7e8e2 (diff) | |
download | lwn-cf3bbe67be154d9658a7b8644a23a05e6246ea79.tar.gz lwn-cf3bbe67be154d9658a7b8644a23a05e6246ea79.zip |
mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static
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>
Diffstat (limited to 'drivers/mtd/nand')
-rw-r--r-- | drivers/mtd/nand/raw/ingenic/ingenic_nand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/raw/ingenic/ingenic_nand.c b/drivers/mtd/nand/raw/ingenic/ingenic_nand.c index ad0c905a03ba..d7b7c0f13909 100644 --- a/drivers/mtd/nand/raw/ingenic/ingenic_nand.c +++ b/drivers/mtd/nand/raw/ingenic/ingenic_nand.c @@ -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, }; |