When I tried to compile I got the following warning: fs/ocfs2/slot_map.c: In function ‘ocfs2_init_slot_info’: fs/ocfs2/slot_map.c:360: warning: ‘bytes’ may be used uninitialized in this function fs/ocfs2/slot_map.c:360: note: ‘bytes’ was declared here Compiler: gcc version 4.4.3 (GCC) on Mandriva I'm not sure why this warning occurs, I think compiler don't know that variable "bytes" is initialized when it is sent by reference to ocfs2_slot_map_physical_size and it throws that ugly warning. However, a simple initialization of "bytes" variable with 0 will fix it.

Signed-off-by: Ionut Gabriel Popescu <poyo_vl@yahoo.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>

authored by Poyo VL and committed by Joel Becker f30d44f3 9b5cd10e

+1 -1
+1 -1
fs/ocfs2/slot_map.c
··· 357 357 { 358 358 int status = 0; 359 359 u64 blkno; 360 - unsigned long long blocks, bytes; 360 + unsigned long long blocks, bytes = 0; 361 361 unsigned int i; 362 362 struct buffer_head *bh; 363 363