[Ocfs2-tools-devel] resize patch printk issues

Joel Becker Joel.Becker at oracle.com
Fri Mar 14 16:26:01 PDT 2008


Tao,
	I noticed the following warnings while building tools on
powerpc.  Please have a look.

Joel

gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -pipe    -I../include -I. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DVERSION=\"1.3.9\"  -MD -MP -MF
./.sparse_file.d -o sparse_file.o -c sparse_file.c
sparse_file.c: In function ‘list_sparse’:
sparse_file.c:435: warning: format ‘%u’ expects type ‘unsigned int’, but argument 2 has type ‘uint64_t’
sparse_file.c:463: warning: format ‘%u’ expects type ‘unsigned int’, but argument 3 has type ‘uint64_t’
gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -pipe    -I../include -I. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DVERSION=\"1.3.9\"  -MD -MP -MF
./.features.d -o features.o -c features.c
gcc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wmissing-declarations -pipe    -I../include -I. -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include   -DVERSION=\"1.3.9\"  -MD -MP -MF
./.resize.d -o resize.o -c resize.c
resize.c: In function ‘validate_vol_size’:
resize.c:139: warning: format ‘%d’ expects type ‘int’, but argument 4 has type ‘uint64_t’
resize.c:146: warning: format ‘%llu’ expects type ‘long long unsigned int’, but argument 5 has type ‘unsigned int’
resize.c: In function ‘reserve_cluster’:
resize.c:169: warning: pointer targets in initialization differ in signedness
resize.c: In function ‘online_resize_group_add’:
resize.c:259: warning: ' ' flag used with ‘%u’ printf format
resize.c: In function ‘update_volume_size’:
resize.c:535: warning: pointer targets in passing argument 1 of ‘online_last_group_extend’ differ in signedness
resize.c:435: warning: unused variable ‘i’
resize.c:524: warning: ‘total_bits’ is used uninitialized in this function
resize.c:432: warning: ‘used_bits’ may be used uninitialized in this function


-- 

"I don't want to achieve immortality through my work; I want to
 achieve immortality through not dying."
        - Woody Allen

Joel Becker
Principal Software Developer
Oracle
E-mail: joel.becker at oracle.com
Phone: (650) 506-8127



More information about the Ocfs2-tools-devel mailing list