linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c
@ 2008-10-27 13:30 Manish Katiyar
  2008-10-29  8:01 ` Paulius Zaleckas
  0 siblings, 1 reply; 2+ messages in thread
From: Manish Katiyar @ 2008-10-27 13:30 UTC (permalink / raw)
  To: dwmw2, linux-fsdevel, linux-mtd

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


Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>
---
 fs/jffs2/nodemgmt.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/fs/jffs2/nodemgmt.c b/fs/jffs2/nodemgmt.c
index 0875b60..21a0529 100644
--- a/fs/jffs2/nodemgmt.c
+++ b/fs/jffs2/nodemgmt.c
@@ -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));

-- 
1.5.4.3


Thanks -
Manish

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c
  2008-10-27 13:30 [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c Manish Katiyar
@ 2008-10-29  8:01 ` Paulius Zaleckas
  0 siblings, 0 replies; 2+ messages in thread
From: Paulius Zaleckas @ 2008-10-29  8:01 UTC (permalink / raw)
  To: Manish Katiyar; +Cc: linux-fsdevel, linux-mtd, dwmw2

Manish Katiyar wrote:
> 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.

> 
> Signed-off-by: Manish Katiyar <mkatiyar@gmail.com>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-29  8:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-27 13:30 [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c Manish Katiyar
2008-10-29  8:01 ` Paulius Zaleckas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).