]> err.no Git - linux-2.6/commitdiff
udf: fix sparse warnings (shadowing & mismatch between declaration and definition)
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Fri, 8 Feb 2008 12:20:35 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:35 +0000 (09:22 -0800)
fix sparse warnings:
fs/udf/super.c:1431:24: warning: symbol 'bh' shadows an earlier one
fs/udf/super.c:1347:21: originally declared here
fs/udf/super.c:472:6: warning: symbol 'udf_write_super' was not declared. Should it be static?

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ben Fennema <bfennema@falcon.csc.calpoly.edu>
Cc: Jan Kara <jack@suse.cz>
Acked-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/udf/super.c

index c19ee38e85b3fb7393ca0839ea738fe50dff1384..3cd5a855033b3eba3fef3c27ec686b4f5157fa1e 100644 (file)
@@ -474,7 +474,7 @@ static int udf_parse_options(char *options, struct udf_options *uopt)
        return 1;
 }
 
-void udf_write_super(struct super_block *sb)
+static void udf_write_super(struct super_block *sb)
 {
        lock_kernel();
 
@@ -1447,7 +1447,6 @@ static int udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset)
                                map->s_type_specific.s_virtual.s_num_entries =
                                        (sbi->s_vat_inode->i_size - 36) >> 2;
                        } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) {
-                               struct buffer_head *bh = NULL;
                                uint32_t pos;
 
                                pos = udf_block_map(sbi->s_vat_inode, 0);