[PATCH] nand: omap2: Fix warning when CONFIG_MTD_NAND_OMAP_BCH=n
Brian Norris
computersforpeace at gmail.com
Wed Apr 16 00:41:17 PDT 2014
Hi Fabio,
On Tue, Apr 08, 2014 at 10:05:00AM -0300, Fabio Estevam wrote:
> When CONFIG_MTD_NAND_OMAP_BCH is not defined the following build warning
> happens:
>
> drivers/mtd/nand/omap2.c:1250:12: warning: 'erased_sector_bitflips' defined but not used [-Wunused-function]
>
> Protect the definition of erased_sector_bitflips() with
> 'ifdef CONFIG_MTD_NAND_OMAP_BCH' to fix the warning.
>
> Signed-off-by: Fabio Estevam <fabio.estevam at freescale.com>
I've already merged a patch for this. (Incidentally, it was sent after
yours, but I noticed it first. Oh well.)
Thanks,
Brian
More information about the linux-mtd
mailing list