]> bbs.cooldavid.org Git - net-next-2.6.git/commit
[MTD] fix nftl_write warning
authorFrederik Deweerdt <deweerdt@free.fr>
Mon, 2 Oct 2006 08:42:25 +0000 (09:42 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 2 Oct 2006 08:42:25 +0000 (09:42 +0100)
commit553a8012088b3452c7d66ff60d2d06ad0c9bea00
tree3f3b25ad7208f505cf0babb4023035daa7d28907
parent9a292308255ad381dd74541be468c4aec240a615
[MTD] fix nftl_write warning

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@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
drivers/mtd/nftlcore.c