]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[JFFS2] fix sparse warnings in gc.c
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 11:12:25 +0000 (12:12 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Apr 2008 11:35:47 +0000 (12:35 +0100)
fs/jffs2/gc.c:1147:29: warning: symbol 'jeb' shadows an earlier one
fs/jffs2/gc.c:1084:89: originally declared here
fs/jffs2/gc.c:1197:29: warning: symbol 'jeb' shadows an earlier one
fs/jffs2/gc.c:1084:89: originally declared here

Rename the unused 'jeb' argument to avoid this. We could potentially
remove the argument, but GCC should be doing that anyway.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
fs/jffs2/gc.c

index 32ff0373aa04d0c9f709ec22c64ad9086c343448..59aeb9820435c93a7dd8b91f317d2bc4f83e8475 100644 (file)
@@ -1081,7 +1081,7 @@ static int jffs2_garbage_collect_hole(struct jffs2_sb_info *c, struct jffs2_eras
        return 0;
 }
 
-static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *jeb,
+static int jffs2_garbage_collect_dnode(struct jffs2_sb_info *c, struct jffs2_eraseblock *orig_jeb,
                                       struct jffs2_inode_info *f, struct jffs2_full_dnode *fn,
                                       uint32_t start, uint32_t end)
 {