On Tue, Dec 25, 2012 at 04:30:27PM +0800, Zhang Yanfei wrote:
> I got the following warnings when I compiled kexec-tools:
> 
> kexec/kexec-elf-rel.c: In function 'elf_rel_load':
> kexec/kexec-elf-rel.c:367: warning: format '%lx' expects type 'long unsigned 
> int', but argument 6 has type 'unsigned int'
> kexec/kexec-elf-rel.c:367: warning: format '%lx' expects type 'long unsigned 
> int', but argument 7 has type 'long long unsigned int'
> kexec/kexec-elf-rel.c:367: warning: format '%lx' expects type 'long unsigned 
> int', but argument 8 has type 'long long unsigned int'
> kexec/arch/i386/crashdump-x86.c: In function 'get_kernel_paddr':
> kexec/arch/i386/crashdump-x86.c:99: warning: format '%016Lx' expects type 
> 'long long unsigned int', but argument 3 has type 'uint64_t'
> kexec/arch/i386/crashdump-x86.c: In function 'get_kernel_vaddr_and_size':
> kexec/arch/i386/crashdump-x86.c:171: warning: format '%lx' expects type 'long 
> unsigned int', but argument 3 has type 'long long unsigned int'
> kexec/arch/i386/crashdump-x86.c: In function 'get_crash_notes':
> kexec/arch/i386/crashdump-x86.c:781: warning: format '%Lx' expects type 'long 
> long unsigned int', but argument 3 has type 'uint64_t'
> kexec/arch/i386/crashdump-x86.c: In function 'load_crashdump_segments':
> kexec/arch/i386/crashdump-x86.c:905: warning: 'nr_ranges' may be used 
> uninitialized in this function
> 
> The patch fix above warnings.

Thanks! Applied.

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Reply via email to