Hmm, that won't do; with this patch it won't compile on x86-32. :-)
I'll take a look and see what the best solution is. Thanks for the patch!
-George
On Fri, Aug 14, 2009 at 2:26 AM, Akio Takebe<takebe_akio@xxxxxxxxxxxxxx> wrote:
> Hi, George
>
> It's interesting tool.
> I got many error on x86_64 dom0 while compiling. The patch fixes these.
>
> gcc -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes
> -Wno-unused-value -Wdeclaration-after-statement -D_LARGEFILE_SOURCE
> -D_LARGEFILE64_SOURCE -mno-tls-direct-seg-refs -Werror -o xenalyze
> xenalyze.c
> cc1: warnings being treated as errors
> xenalyze.c: In function 'init_hvm_data':
> xenalyze.c:1321: warning: format '%d' expects type 'int', but argument 3 has
> type 'size_t'
> xenalyze.c: In function 'hvm_msr_write_process':
> xenalyze.c:4055: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'hvm_msr_read_process':
> xenalyze.c:4104: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'shadow_emulate_process':
> xenalyze.c:5128: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5142: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5156: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'shadow_parse_other':
> xenalyze.c:5228: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5244: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5256: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'shadow_fixup_process':
> xenalyze.c:5445: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5458: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5471: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'shadow_mmio_process':
> xenalyze.c:5559: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c:5570: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'vcpu_create':
> xenalyze.c:6080: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'domain_create':
> xenalyze.c:6122: warning: format '%d' expects type 'int', but argument 4 has
> type 'long unsigned int'
> xenalyze.c: In function 'scan_for_new_pcpu':
> xenalyze.c:7119: warning: format '%lld' expects type 'long long int', but
> argument 5 has type 'loff_t'
> xenalyze.c: In function 'process_cpu_change':
> xenalyze.c:7194: warning: format '%llx' expects type 'long long unsigned
> int', but argument 4 has type 'loff_t'
> xenalyze.c:7194: warning: format '%llx' expects type 'long long unsigned
> int', but argument 5 has type 'loff_t'
> xenalyze.c:7220: warning: format '%lld' expects type 'long long int', but
> argument 5 has type 'loff_t'
> xenalyze.c:7245: warning: format '%llx' expects type 'long long unsigned
> int', but argument 5 has type 'loff_t'
> xenalyze.c: In function '__read_record':
> xenalyze.c:7538: warning: format '%d' expects type 'int', but argument 4 has
> type 'ssize_t'
> xenalyze.c:7547: warning: format '%d' expects type 'int', but argument 4 has
> type 'ssize_t'
> xenalyze.c:7547: warning: format '%d' expects type 'int', but argument 5 has
> type 'ssize_t'
> xenalyze.c: In function '__fill_in_record_info':
> xenalyze.c:7594: warning: format '%016llx' expects type 'long long unsigned
> int', but argument 3 has type 'loff_t'
> make: *** [xenalyze] Error 1
>
> Signed-off-by: Akio Takebe <takebe_akio@xxxxxxxxxxxxxx>
>
> Best Regards,
>
> Akio Takebe
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel
>
>
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|