public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static
@ 2017-12-20  5:45 Wei Yongjun
  2017-12-22 10:09 ` Andrea Adami
  0 siblings, 1 reply; 3+ messages in thread
From: Wei Yongjun @ 2017-12-20  5:45 UTC (permalink / raw)
  To: David Woodhouse, Brian Norris, Boris Brezillon, Marek Vasut,
	Richard Weinberger, Cyrille Pitchen, Andrea Adami, Colin Ian King
  Cc: Wei Yongjun, linux-mtd, linux-kernel

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>
---
 drivers/mtd/parsers/sharpslpart.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mtd/parsers/sharpslpart.c b/drivers/mtd/parsers/sharpslpart.c
index 0ddb79a..8893dc8 100644
--- a/drivers/mtd/parsers/sharpslpart.c
+++ b/drivers/mtd/parsers/sharpslpart.c
@@ -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);
 }

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-01-06 20:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20  5:45 [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static Wei Yongjun
2017-12-22 10:09 ` Andrea Adami
2018-01-06 20:44   ` Boris Brezillon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox