From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Manish Katiyar" Subject: [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c Date: Mon, 27 Oct 2008 19:00:17 +0530 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit To: dwmw2@infradead.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org Return-path: Received: from ti-out-0910.google.com ([209.85.142.185]:29965 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752331AbYJ0NaT (ORCPT ); Mon, 27 Oct 2008 09:30:19 -0400 Received: by ti-out-0910.google.com with SMTP id b6so1164338tic.23 for ; Mon, 27 Oct 2008 06:30:17 -0700 (PDT) Content-Disposition: inline Sender: linux-fsdevel-owner@vger.kernel.org List-ID: 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 --- 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