android_kernel_xiaomi_sm8350/fs/udf
Marcin Slusarz 1ed161718a udf: fix 3 signedness & 1 unitialized variable warnings
sparse generated:
fs/udf/inode.c:324:41: warning: incorrect type in argument 4 (different signedness)
fs/udf/inode.c:324:41:    expected long *<noident>
fs/udf/inode.c:324:41:    got unsigned long *<noident>

inode_getblk always set 4th argument to uint32_t value
3rd parameter of map_bh is sector_t (which is unsigned long or u64)
so convert phys value to sector_t

fs/udf/inode.c:1818:47: warning: incorrect type in argument 3 (different signedness)
fs/udf/inode.c:1818:47:    expected int *<noident>
fs/udf/inode.c:1818:47:    got unsigned int *<noident>
fs/udf/inode.c:1826:46: warning: incorrect type in argument 3 (different signedness)
fs/udf/inode.c:1826:46:    expected int *<noident>
fs/udf/inode.c:1826:46:    got unsigned int *<noident>

udf_get_filelongad and udf_get_shortad are called always for uint32_t
values (struct extent_position->offset), so it's safe to convert offset
parameter to uint32_t

gcc warned:
fs/udf/inode.c: In function 'udf_get_block':
fs/udf/inode.c:299: warning: 'phys' may be used uninitialized in this function
initialize it to 0 (if someday someone will break inode_getblk we will catch it immediately)

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Cc: Ben Fennema <bfennema@falcon.csc.calpoly.edu>
Acked-by: Jan Kara <jack@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-08 09:22:36 -08:00
..
balloc.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
crc.c udf: fix coding style 2008-02-08 09:22:35 -08:00
dir.c udf: remove wrong prototype of udf_readdir 2008-02-08 09:22:36 -08:00
directory.c udf: fix 3 signedness & 1 unitialized variable warnings 2008-02-08 09:22:36 -08:00
ecma_167.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
file.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
fsync.c UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
ialloc.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
inode.c udf: fix 3 signedness & 1 unitialized variable warnings 2008-02-08 09:22:36 -08:00
lowlevel.c UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
Makefile
misc.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
namei.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
osta_udf.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
partition.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
super.c kill UDFFS_{DATE,VERSION} 2008-02-08 09:22:36 -08:00
symlink.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
truncate.c udf: cache struct udf_inode_info 2008-02-08 09:22:35 -08:00
udf_i.h udf: remove UDF_I_* macros and open code them 2008-02-08 09:22:35 -08:00
udf_sb.h udf: move calculating of nr_groups into helper function 2008-02-08 09:22:35 -08:00
udfdecl.h udf: fix 3 signedness & 1 unitialized variable warnings 2008-02-08 09:22:36 -08:00
udfend.h UDF: coding style conversion - lindent fixups 2007-07-21 17:49:14 -07:00
udftime.c udf: fix coding style 2008-02-08 09:22:35 -08:00
unicode.c udf: fix coding style 2008-02-08 09:22:35 -08:00