Skip to content

Commit

Permalink
mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wei Yongjun authored and Boris Brezillon committed Jan 6, 2018
1 parent 2e7c7f6 commit 911c3a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mtd/parsers/sharpslpart.c
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ static int sharpsl_nand_init_ftl(struct mtd_info *mtd, struct sharpsl_ftl *ftl)
return ret;
}

void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
static void sharpsl_nand_cleanup_ftl(struct sharpsl_ftl *ftl)
{
kfree(ftl->log2phy);
}
Expand Down

0 comments on commit 911c3a3

Please sign in to comment.