Commit 553a8012088b3452c7d66ff60d2d06ad0c9bea00
Committed by
David Woodhouse
1 parent
9a29230825
Exists in
master
and in
39 other branches
[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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/mtd/nftlcore.c
... | ... | @@ -175,6 +175,8 @@ |
175 | 175 | return res; |
176 | 176 | } |
177 | 177 | |
178 | +#ifdef CONFIG_NFTL_RW | |
179 | + | |
178 | 180 | /* |
179 | 181 | * Write data and oob to flash |
180 | 182 | */ |
... | ... | @@ -195,8 +197,6 @@ |
195 | 197 | *retlen = ops.retlen; |
196 | 198 | return res; |
197 | 199 | } |
198 | - | |
199 | -#ifdef CONFIG_NFTL_RW | |
200 | 200 | |
201 | 201 | /* Actual NFTL access routines */ |
202 | 202 | /* NFTL_findfreeblock: Find a free Erase Unit on the NFTL partition. This function is used |