Skip to contentSkip to conversation

[PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c

PATCH Manish Katiyar 2 participants 2 messages Oct 27, 2008 – Oct 29, 2008

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

Below patch fixes the following compilation warnings :
fs/jffs2/nodemgmt.c: In function 'jffs2_find_nextblock':
fs/jffs2/nodemgmt.c:265: error: 'struct jffs2_sb_info' has no member named 'wbuf_ofs'
fs/jffs2/nodemgmt.c:265: error: 'struct jffs2_sb_info' has no member named 'wbuf_len'
fs/jffs2/nodemgmt.c:266: error: 'struct jffs2_sb_info' has no member named 'wbuf_ofs'
make[2]: *** [fs/jffs2/nodemgmt.o] Error 1

---
 fs/jffs2/nodemgmt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
fs/jffs2/nodemgmt.c +2 -0
index 0875b60..21a0529 100644
@@ -261,9 +261,11 @@ static int jffs2_find_nextblock(struct jffs2_sb_info *c)
 
 	jffs2_sum_reset_collected(c->summary); /* reset collected summary */
 
+#ifdef CONFIG_JFFS2_FS_WRITEBUFFER
 	/* adjust write buffer offset, else we get a non contiguous write bug */
 	if (!(c->wbuf_ofs % c->sector_size) && !c->wbuf_len)
 		c->wbuf_ofs = 0xffffffff;
+#endif
 
 	D1(printk(KERN_DEBUG "jffs2_find_nextblock(): new nextblock =

0x%08x\n", c->nextblock->offset));

Signature · 5 lines
1.5.4.3


Thanks -
Manish
#1 lore raw
Quoted 10 lines · Manish Katiyar

Below patch fixes the following compilation warnings :
fs/jffs2/nodemgmt.c: In function 'jffs2_find_nextblock':
fs/jffs2/nodemgmt.c:265: error: 'struct jffs2_sb_info' has no member named 'wbuf_ofs'
fs/jffs2/nodemgmt.c:265: error: 'struct jffs2_sb_info' has no member named 'wbuf_len'
fs/jffs2/nodemgmt.c:266: error: 'struct jffs2_sb_info' has no member named 'wbuf_ofs'
make[2]: *** [fs/jffs2/nodemgmt.o] Error 1

You are too late. This is already fixed and patch is in mtd git tree.

Quoted 2 lines

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/