[PATCH 1/3] mtd: nand: remove EXPORT_SYMBOL of nand_scan_bbt()

Boris Brezillon boris.brezillon at free-electrons.com
Thu Jan 14 07:17:00 PST 2016


Hi Thomas,

On Thu, 14 Jan 2016 15:44:49 +0100
Thomas Petazzoni <thomas.petazzoni at free-electrons.com> wrote:

> Since commit 17799359e7b3fa6ef4f2bf926cd6821cf7903ecf ("mtd: nand_bbt:
> make nand_scan_bbt() static"), the nand_scan_bbt() function is marked
> as static but is still exported using EXPORT_SYMBOL(), which doesn't
> make much sense.
> 
> This commit gets rid of the useless EXPORT_SYMBOL.

Hehe, I noticed this useless EXPORT_SYMBOL while reviewing the BBT
rework, just forgot to post the patch removing it.

Reviewed-by: Boris Brezillon <boris.brezillon at free-electrons.com>

Thanks,

Boris

> 
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> ---
>  drivers/mtd/nand/nand_bbt.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/mtd/nand/nand_bbt.c b/drivers/mtd/nand/nand_bbt.c
> index b1d4f81..4dfaf93 100644
> --- a/drivers/mtd/nand/nand_bbt.c
> +++ b/drivers/mtd/nand/nand_bbt.c
> @@ -1373,5 +1373,3 @@ int nand_markbad_bbt(struct mtd_info *mtd, loff_t offs)
>  
>  	return ret;
>  }
> -
> -EXPORT_SYMBOL(nand_scan_bbt);



-- 
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com



More information about the linux-mtd mailing list