mtd: onenand: Make flexonenand_set_boundary static

Linux-MTD Mailing List linux-mtd at lists.infradead.org
Wed Nov 21 06:59:01 EST 2012


Gitweb:     http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=0131950ebd146b5e31508233352d6f4625af25b1
Commit:     0131950ebd146b5e31508233352d6f4625af25b1
Parent:     c36a7ff4578ab6294885aef5ef241aeec4cdb1f0
Author:     Sachin Kamat <sachin.kamat at linaro.org>
AuthorDate: Sat Sep 22 11:42:31 2012 +0530
Committer:  Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
CommitDate: Fri Nov 9 17:02:50 2012 +0200

    mtd: onenand: Make flexonenand_set_boundary static
    
    Fixes the following sparse warning:
    drivers/mtd/onenand/onenand_base.c:3697:5: warning:
    symbol 'flexonenand_set_boundary' was not declared. Should it be static?
    
    Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
    Acked-by: Kyungmin Park <kyungmin.park at samsung.com>
    Signed-off-by: Artem Bityutskiy <artem.bityutskiy at linux.intel.com>
---
 drivers/mtd/onenand/onenand_base.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mtd/onenand/onenand_base.c b/drivers/mtd/onenand/onenand_base.c
index 7153e0d2..b3f41f2 100644
--- a/drivers/mtd/onenand/onenand_base.c
+++ b/drivers/mtd/onenand/onenand_base.c
@@ -3694,7 +3694,7 @@ static int flexonenand_check_blocks_erased(struct mtd_info *mtd, int start, int
  * flexonenand_set_boundary	- Writes the SLC boundary
  * @param mtd			- mtd info structure
  */
-int flexonenand_set_boundary(struct mtd_info *mtd, int die,
+static int flexonenand_set_boundary(struct mtd_info *mtd, int die,
 				    int boundary, int lock)
 {
 	struct onenand_chip *this = mtd->priv;



More information about the linux-mtd-cvs mailing list