The patch titled udf: fix sparse warnings (shadowing & mismatch between declaration and definition) has been added to the -mm tree. Its filename is udf-fix-sparse-warnings-shadowing-mismatch-between-declaration-and-definition.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/ ------------------------------------------------------ Subject: udf: fix sparse warnings (shadowing & mismatch between declaration and definition) From: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> fix warnings: fs/udf/super.c:1320:24: warning: symbol 'bh' shadows an earlier one fs/udf/super.c:1240:21: originally declared here fs/udf/super.c:1583:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1418:6: originally declared here fs/udf/super.c:1585:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1418:6: originally declared here fs/udf/super.c:1658:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1648:6: originally declared here fs/udf/super.c:1660:4: warning: symbol 'i' shadows an earlier one fs/udf/super.c:1648:6: originally declared here fs/udf/super.c:450:6: warning: symbol 'udf_write_super' was not declared. Should it be static? Signed-off-by: Marcin Slusarz <marcin.slusarz@xxxxxxxxx> Cc: Ben Fennema <bfennema@xxxxxxxxxxxxxxxxxxxxxx> Cc: Jan Kara <jack@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/udf/super.c | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff -puN fs/udf/super.c~udf-fix-sparse-warnings-shadowing-mismatch-between-declaration-and-definition fs/udf/super.c --- a/fs/udf/super.c~udf-fix-sparse-warnings-shadowing-mismatch-between-declaration-and-definition +++ a/fs/udf/super.c @@ -447,7 +447,7 @@ static int udf_parse_options(char *optio return 1; } -void udf_write_super(struct super_block *sb) +static void udf_write_super(struct super_block *sb) { lock_kernel(); @@ -1317,7 +1317,6 @@ static int udf_load_partition(struct sup UDF_SB_TYPEVIRT(sb, i).s_num_entries = (UDF_SB_VAT(sb)->i_size - 36) >> 2; } else if (UDF_SB_PARTTYPE(sb, i) == UDF_VIRTUAL_MAP20) { - struct buffer_head *bh = NULL; uint32_t pos; pos = udf_block_map(UDF_SB_VAT(sb), 0); @@ -1415,7 +1414,7 @@ static void udf_close_lvid(struct super_ */ static int udf_fill_super(struct super_block *sb, void *options, int silent) { - int i; + int idx; struct inode *inode = NULL; struct udf_options uopt; kernel_lb_addr rootdir, fileset; @@ -1583,8 +1582,8 @@ error_out: if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_FREED_BITMAP) UDF_SB_FREE_BITMAP(sb,UDF_SB_PARTITION(sb), s_fspace); if (UDF_SB_PARTTYPE(sb, UDF_SB_PARTITION(sb)) == UDF_SPARABLE_MAP15) { - for (i = 0; i < 4; i++) - brelse(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[i]); + for (idx = 0; idx < 4; idx++) + brelse(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[idx]); } } #ifdef CONFIG_UDF_NLS @@ -1644,7 +1643,7 @@ void udf_warning(struct super_block *sb, */ static void udf_put_super(struct super_block *sb) { - int i; + int idx; if (UDF_SB_VAT(sb)) iput(UDF_SB_VAT(sb)); @@ -1658,8 +1657,8 @@ static void udf_put_super(struct super_b if (UDF_SB_PARTFLAGS(sb, UDF_SB_PARTITION(sb)) & UDF_PART_FLAG_FREED_BITMAP) UDF_SB_FREE_BITMAP(sb,UDF_SB_PARTITION(sb), s_fspace); if (UDF_SB_PARTTYPE(sb, UDF_SB_PARTITION(sb)) == UDF_SPARABLE_MAP15) { - for (i = 0; i < 4; i++) - brelse(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[i]); + for (idx = 0; idx < 4; idx++) + brelse(UDF_SB_TYPESPAR(sb, UDF_SB_PARTITION(sb)).s_spar_map[idx]); } } #ifdef CONFIG_UDF_NLS _ Patches currently in -mm which might be from marcin.slusarz@xxxxxxxxx are git-alsa.patch ehci-hcd-fix-sparse-warning-about-shadowing-status-symbol-checkpatch-fixes.patch vgacon-fix-sparse-warning-about-shadowing-i-symbol.patch fbcon-fix-sparse-warning-about-shadowing-p-symbol.patch fbcon-fix-sparse-warning-about-shadowing-rotate-symbol.patch logo-move-declarations-of-logos-to-linux_logoh.patch logo-move-declarations-of-logos-to-linux_logoh-fix.patch udf-remove-wrong-prototype-of-udf_readdir.patch udf-remove-wrong-prototype-of-udf_readdir-checkpatch-fixes.patch udf-improve-readability-of-do_udf_readdir.patch udf-fix-coding-style-of-dirc.patch udf-fix-3-signedness-1-unitialized-variable-warnings.patch udf-fix-signedness-issue.patch udf-fix-sparse-warnings-shadowing-mismatch-between-declaration-and-definition.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html