Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

udf: remove reporting loc in debug output

clang build fails with
fs/udf/partition.c:86:28: error: variable 'loc' is uninitialized when used here [-Werror,-Wuninitialized]
sb, block, partition, loc, index);
^~~

loc is now only known when bh is valid. So remove reporting loc in debug
output.

Fixes: 4215db46d538 ("udf: Use udf_bread() in udf_get_pblock_virt15()")
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: "kernelci.org bot" <bot@kernelci.org>
Signed-off-by: Tom Rix <trix@redhat.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Tom Rix and committed by
Jan Kara
f8d0dd0b 1e0d4adf

+2 -2
+2 -2
fs/udf/partition.c
··· 82 82 83 83 bh = udf_bread(sbi->s_vat_inode, newblock, 0, &err); 84 84 if (!bh) { 85 - udf_debug("get_pblock(UDF_VIRTUAL_MAP:%p,%u,%u) VAT: %u[%u]\n", 86 - sb, block, partition, loc, index); 85 + udf_debug("get_pblock(UDF_VIRTUAL_MAP:%p,%u,%u)\n", 86 + sb, block, partition); 87 87 return 0xFFFFFFFF; 88 88 } 89 89