Skip to content

Commit 911c3a3

Browse files
Wei YongjunBoris Brezillon
authored andcommitted
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>
1 parent 2e7c7f6 commit 911c3a3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mtd/parsers/sharpslpart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ static int sharpsl_nand_init_ftl(struct mtd_info *mtd, struct sharpsl_ftl *ftl)
219219
return ret;
220220
}
221221

222-
void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
222+
static void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
223223
{
224224
kfree(ftl->log2phy);
225225
}

0 commit comments

Comments
 (0)