The patch titled mtd: fix nftl_write warning has been added to the -mm tree. Its filename is mtd-fix-nftl_write-warning.patch See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: mtd: fix nftl_write warning From: Frederik Deweerdt <deweerdt@xxxxxxx> Building 2.6.18-mm2 issues the following warning if CONFIG_NFTL_RW is not set: CC [M] drivers/mtd/nftlcore.o drivers/mtd/nftlcore.c:183: warning: 'nftl_write' defined but not used The following patch only compiles nftl_write if CONFIG_NFTL_RW is set. Signed-off-by: Frederik Deweerdt <frederik.deweerdt@xxxxxxxxx> Cc: David Woodhouse <dwmw2@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxx> --- drivers/mtd/nftlcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff -puN drivers/mtd/nftlcore.c~mtd-fix-nftl_write-warning drivers/mtd/nftlcore.c --- a/drivers/mtd/nftlcore.c~mtd-fix-nftl_write-warning +++ a/drivers/mtd/nftlcore.c @@ -175,6 +175,8 @@ int nftl_write_oob(struct mtd_info *mtd, return res; } +#ifdef CONFIG_NFTL_RW + /* * Write data and oob to flash */ @@ -196,8 +198,6 @@ static int nftl_write(struct mtd_info *m return res; } -#ifdef CONFIG_NFTL_RW - /* Actual NFTL access routines */ /* NFTL_findfreeblock: Find a free Erase Unit on the NFTL partition. This function is used * when the give Virtual Unit Chain _ Patches currently in -mm which might be from deweerdt@xxxxxxx are origin.patch libata-add-40pin-short-cable-support-honour-drive.patch mtd-fix-nftl_write-warning.patch bluetooth-use-gfp_atomic-in-_sock_creates-sk_alloc.patch add-missing-page_copy-export-for-ppc-and-powerpc.patch pr_debug-check-pr_debug-arguments-arm-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html