diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2008-02-08 07:20:35 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-02-08 12:22:35 -0500 |
commit | bd45a420f93d18c91115f3f0568dd6a2555aa15a (patch) | |
tree | cd90cf264f6744fbc4810e548de35ae17d212ef6 /fs | |
parent | 883cb9d1842a37c6eed77f2c64792d35048c1e8d (diff) |
udf: fix sparse warnings (shadowing & mismatch between declaration and definition)
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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/udf/super.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c index c19ee38e85b3..3cd5a855033b 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
@@ -474,7 +474,7 @@ static int udf_parse_options(char *options, struct udf_options *uopt) | |||
474 | return 1; | 474 | return 1; |
475 | } | 475 | } |
476 | 476 | ||
477 | void udf_write_super(struct super_block *sb) | 477 | static void udf_write_super(struct super_block *sb) |
478 | { | 478 | { |
479 | lock_kernel(); | 479 | lock_kernel(); |
480 | 480 | ||
@@ -1447,7 +1447,6 @@ static int udf_load_partition(struct super_block *sb, kernel_lb_addr *fileset) | |||
1447 | map->s_type_specific.s_virtual.s_num_entries = | 1447 | map->s_type_specific.s_virtual.s_num_entries = |
1448 | (sbi->s_vat_inode->i_size - 36) >> 2; | 1448 | (sbi->s_vat_inode->i_size - 36) >> 2; |
1449 | } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) { | 1449 | } else if (map->s_partition_type == UDF_VIRTUAL_MAP20) { |
1450 | struct buffer_head *bh = NULL; | ||
1451 | uint32_t pos; | 1450 | uint32_t pos; |
1452 | 1451 | ||
1453 | pos = udf_block_map(sbi->s_vat_inode, 0); | 1452 | pos = udf_block_map(sbi->s_vat_inode, 0); |