mtd: nand_bbt: make nand_scan_bbt() static

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Tue Jun 23 10:59:01 PDT 2015


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=17799359e7b3fa6ef4f2bf926cd6821cf7903ecf
Commit:     17799359e7b3fa6ef4f2bf926cd6821cf7903ecf
Parent:     d24fe0c3e8a79579fdf966c8cff530962742f79c
Author:     Brian Norris <computersforpeace at gmail.com>
AuthorDate: Sat Feb 28 02:13:11 2015 -0800
Committer:  Brian Norris <computersforpeace at gmail.com>
CommitDate: Wed May 6 20:02:35 2015 -0700

    mtd: nand_bbt: make nand_scan_bbt() static
    
    This implementation detail is no longer needed outside of nand_bbt.c.
    
    Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
 drivers/mtd/nand/nand_bbt.c | 2 +-
 include/linux/mtd/nand.h    | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
index 307a285..53e1758 100644
--- a/drivers/mtd/nand/nand_bbt.c
+++ b/drivers/mtd/nand/nand_bbt.c
@@ -1074,7 +1074,7 @@ static void verify_bbt_descr(struct mtd_info *mtd, struct nand_bbt_descr *bd)
  * The bad block table memory is allocated here. It must be freed by calling
  * the nand_free_bbt function.
  */
-int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
+static int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd)
 {
 	struct nand_chip *this = mtd->priv;
 	int len, res = 0;
diff --git a/include/linux/mtd/nand.h b/include/linux/mtd/nand.h
index 3d4ea7e..6c51876 100644
--- a/include/linux/mtd/nand.h
+++ b/include/linux/mtd/nand.h
@@ -833,7 +833,6 @@ struct nand_manufacturers {
 extern struct nand_flash_dev nand_flash_ids[];
 extern struct nand_manufacturers nand_manuf_ids[];
 
-extern int nand_scan_bbt(struct mtd_info *mtd, struct nand_bbt_descr *bd);
 extern int nand_default_bbt(struct mtd_info *mtd);
 extern int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs);
 extern int nand_isreserved_bbt(struct mtd_info *mtd, loff_t offs);



More information about the linux-mtd-cvs mailing list