Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753337AbeAFUoT (ORCPT + 1 other); Sat, 6 Jan 2018 15:44:19 -0500 Received: from mail.free-electrons.com ([62.4.15.54]:60946 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752550AbeAFUoR (ORCPT ); Sat, 6 Jan 2018 15:44:17 -0500 Date: Sat, 6 Jan 2018 21:44:13 +0100 From: Boris Brezillon To: Andrea Adami Cc: Wei Yongjun , Richard Weinberger , linux-kernel@vger.kernel.org, Marek Vasut , linux-mtd@lists.infradead.org, Cyrille Pitchen , Colin Ian King , Brian Norris , David Woodhouse Subject: Re: [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static Message-ID: <20180106214413.7a8f9eea@bbrezillon> In-Reply-To: References: <1513748736-165067-1-git-send-email-weiyongjun1@huawei.com> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Fri, 22 Dec 2017 11:09:15 +0100 Andrea Adami wrote: > On Wed, Dec 20, 2017 at 6:45 AM, Wei Yongjun wrote: > > 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 > > --- > > 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); > > } > > > > Thanks, this should be indeed static like the other functions. > > Acked-by: Andrea Adami > Applied. Thanks, Boris > ______________________________________________________ > Linux MTD discussion mailing list > http://lists.infradead.org/mailman/listinfo/linux-mtd/