From patchwork Mon Oct 27 13:30:17 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Katiyar X-Patchwork-Id: 5913 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B1F01DDDD4 for ; Tue, 28 Oct 2008 00:32:25 +1100 (EST) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KuSAp-0007yJ-42; Mon, 27 Oct 2008 13:30:23 +0000 Received: from ti-out-0910.google.com ([209.85.142.184]) by bombadil.infradead.org with esmtp (Exim 4.68 #1 (Red Hat Linux)) id 1KuSAn-0007yA-3v for linux-mtd@lists.infradead.org; Mon, 27 Oct 2008 13:30:21 +0000 Received: by ti-out-0910.google.com with SMTP id a21so1240704tia.2 for ; Mon, 27 Oct 2008 06:30:18 -0700 (PDT) Received: by 10.110.68.10 with SMTP id q10mr3524257tia.37.1225114217351; Mon, 27 Oct 2008 06:30:17 -0700 (PDT) Received: by 10.110.39.8 with HTTP; Mon, 27 Oct 2008 06:30:17 -0700 (PDT) Message-ID: Date: Mon, 27 Oct 2008 19:00:17 +0530 From: "Manish Katiyar" To: dwmw2@infradead.org, linux-fsdevel@vger.kernel.org, linux-mtd@lists.infradead.org Subject: [PATCH} : Fix compilation warnings in fs/jffs2/nodemgmt.c MIME-Version: 1.0 Content-Disposition: inline X-Spam-Score: 0.0 (/) X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.9 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-mtd-bounces@lists.infradead.org Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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));