[PATCH 6/8] nand: Fix sparse warning.

Marek Belisko marek.belisko at open-nandra.com
Thu Oct 13 16:23:12 EDT 2011


warning:
drivers/mtd/nand/nand_write.c:262:5: warning: symbol 'nand_do_write_ops' was not declared. Should it be static?

Signed-off-by: Marek Belisko <marek.belisko at open-nandra.com>
---
 drivers/mtd/nand/nand_write.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/nand/nand_write.c b/drivers/mtd/nand/nand_write.c
index 13b6c89..59a1bcc 100644
--- a/drivers/mtd/nand/nand_write.c
+++ b/drivers/mtd/nand/nand_write.c
@@ -259,7 +259,7 @@ static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob,
  *
  * NAND write with ECC
  */
-int nand_do_write_ops(struct mtd_info *mtd, loff_t to,
+static int nand_do_write_ops(struct mtd_info *mtd, loff_t to,
 			     struct mtd_oob_ops *ops)
 {
 	int chipnr, realpage, page, blockmask, column;
-- 
1.7.4.1




More information about the barebox mailing list