summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/nand/denali.c
diff options
context:
space:
mode:
authorRashika Kheria <rashika.kheria@gmail.com>2013-12-13 08:16:04 +0100
committerBrian Norris <computersforpeace@gmail.com>2014-01-03 20:22:26 +0100
commit919193cee04f49628ae9efdc45bf4af1e506205f (patch)
tree865e2ef746ee7bd4fb0b0f440af1092067abdf37 /drivers/mtd/nand/denali.c
parentmtd: lpddr: Mark functions as static and remove unused function (diff)
downloadlinux-919193cee04f49628ae9efdc45bf4af1e506205f.tar.xz
linux-919193cee04f49628ae9efdc45bf4af1e506205f.zip
mtd: denali: Mark function is_erased() as static
This patch marks the function is_erased() as static in denali.c because it is not used outside this file. This patch elimiates the following warning in nand/denali.c: drivers/mtd/nand/denali.c:900:6: warning: no previous prototype for ‘is_erased’ [-Wmissing-prototypes] Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Diffstat (limited to 'drivers/mtd/nand/denali.c')
-rw-r--r--drivers/mtd/nand/denali.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/nand/denali.c b/drivers/mtd/nand/denali.c
index 370b9dd7a278..3a3a47f60d28 100644
--- a/drivers/mtd/nand/denali.c
+++ b/drivers/mtd/nand/denali.c
@@ -897,7 +897,7 @@ static void read_oob_data(struct mtd_info *mtd, uint8_t *buf, int page)
/* this function examines buffers to see if they contain data that
* indicate that the buffer is part of an erased region of flash.
*/
-bool is_erased(uint8_t *buf, int len)
+static bool is_erased(uint8_t *buf, int len)
{
int i = 0;
for (i = 0; i < len; i++)