Skip to content

Commit

Permalink
mtd: rawnand: ingenic: Make jz4725b_ooblayout_ops static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
YueHaibing authored and Miquel Raynal committed Apr 18, 2019
1 parent 09e030d commit cf3bbe6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/nand/raw/ingenic/ingenic_nand.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit cf3bbe6

Please sign in to comment.