summaryrefslogtreecommitdiff
path: root/drivers/mtd/parsers
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-12-20 08:45:36 +0300
committerBoris Brezillon <boris.brezillon@free-electrons.com>2018-01-06 17:06:23 +0300
commit911c3a30cab8269239d24e68df4adf9f7f9e2a01 (patch)
tree520563a66868d8f7871ee79c2e1712fd2cbc5079 /drivers/mtd/parsers
parent2e7c7f66b2b4c88a03c69b148e29a372432f35b9 (diff)
downloadlinux-911c3a30cab8269239d24e68df4adf9f7f9e2a01.tar.xz
mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static
Fixes the following sparse warnings: drivers/mtd/parsers/sharpslpart.c:222:6: warning: symbol 'sharpsl_nand_cleanup_ftl' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Acked-by: Andrea Adami <andrea.adami@gmail.com> Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Diffstat (limited to 'drivers/mtd/parsers')
-rw-r--r--drivers/mtd/parsers/sharpslpart.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/parsers/sharpslpart.c b/drivers/mtd/parsers/sharpslpart.c
index 0ddb79ac390d..8893dc82a5c8 100644
--- a/drivers/mtd/parsers/sharpslpart.c
+++ b/drivers/mtd/parsers/sharpslpart.c
@@ -219,7 +219,7 @@ exit:
return ret;
}
-void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
+static void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
{
kfree(ftl->log2phy);
}