From: Christian Engelmayer Date: Mon, 14 Apr 2014 22:32:05 +0000 (+0200) Subject: mtd: nand: omap: fix compile warning on ‘erased_sector_bitflips’ X-Git-Tag: omap-for-v3.16/fixes-against-rc1~57^2~49 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9fd6c6c18c1a4a3220473c76fd447c5708b5ecf9;p=pandora-kernel.git mtd: nand: omap: fix compile warning on ‘erased_sector_bitflips’ Commit 2c9f2365 (mtd: nand: omap: ecc.calculate: merge omap3_calculate_ecc_bch4 in omap_calculate_ecc_bch) introduced minor compile warning "‘erased_sector_bitflips’ defined but not used [-Wunused-function]" when compiling without CONFIG_MTD_NAND_OMAP_BCH. Move function erased_sector_bitflips() into the same ifdef section as the only caller. Signed-off-by: Christian Engelmayer Reviewed-by: Jingoo Han Acked-by: Pekon Gupta Signed-off-by: Brian Norris --- Reading git-diff-tree failed