Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758507AbdLVKJi (ORCPT ); Fri, 22 Dec 2017 05:09:38 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:36234 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758390AbdLVKJR (ORCPT ); Fri, 22 Dec 2017 05:09:17 -0500 X-Google-Smtp-Source: ACJfBouPqPkeAIMCfadM0erl2GvQ+inB3vMg/ALwqJRhwFdBBIfTB2SNUkLwJoSfxhTBPk4rZW5jR8T2xqFHIf01bKo= MIME-Version: 1.0 In-Reply-To: <1513748736-165067-1-git-send-email-weiyongjun1@huawei.com> References: <1513748736-165067-1-git-send-email-weiyongjun1@huawei.com> From: Andrea Adami Date: Fri, 22 Dec 2017 11:09:15 +0100 Message-ID: Subject: Re: [PATCH -next] mtd: sharpslpart: make local function sharpsl_nand_cleanup_ftl() static To: Wei Yongjun Cc: David Woodhouse , Brian Norris , Boris Brezillon , Marek Vasut , Richard Weinberger , Cyrille Pitchen , Colin Ian King , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1014 Lines: 29 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