]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mtd: onenand: Make flexonenand_set_boundary static
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 22 Sep 2012 06:12:31 +0000 (11:42 +0530)
committerArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
Fri, 5 Oct 2012 09:32:25 +0000 (12:32 +0300)
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@linaro.org>
Acked-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
drivers/mtd/onenand/onenand_base.c

index 7153e0d27101e3eed06ac17addcdbd4734c7ccc3..b3f41f200622b39f5ef7d46ab6b772ed2eb9e97e 100644 (file)
@@ -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;