Commit bd45a420 authored by Marcin Slusarz's avatar Marcin Slusarz Committed by Linus Torvalds

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: default avatarMarcin Slusarz <>
Cc: Ben Fennema <>
Cc: Jan Kara <>
Acked-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarAndrew Morton <>
Signed-off-by: default avatarLinus Torvalds <>
parent 883cb9d1
......@@ -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)
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment