kexec: Fix compile errors in crashdump-mips.c
Subsystems (2)
PATCH 1/1 kexec: Fix compile errors in crashdump-mips.c
From: David Daney <[email protected]>
When building configured as '--host=mips64-octeon-linux-gnu' using GCC-4.7.0 there are two compile errors, fix them.
--- kexec/arch/mips/crashdump-mips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
kexec/arch/mips/crashdump-mips.c +2 -2
@@ -83,7 +83,7 @@ static int get_kernel_vaddr_and_size(struct crash_elf_info *elf_info,dbgprintf ("kernel_vaddr= 0x%llx paddr %llx\n" , elf_info->kern_vaddr_start, elf_info->kern_paddr_start); -dbgprintf ("kernel size = 0x%llx\n" , elf_info->kern_size); +dbgprintf ("kernel size = 0x%lx\n" , elf_info->kern_size);return 0 ; }fprintf (stderr,"Cannot determine kernel virtual load addr and size\n" );
@@ -356,7 +356,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,#ifdef __mips64if (arch_options.core_header_type ==CORE_TYPE_ELF64 ) { elf_info = &elf_info64; - crash_create = crash_create_elf64; + crash_create = crash_create_elf64_headers; start_offset =0xffffffff80000000UL ; }#endif
Signature · 7 lines
1.7.11.7 _______________________________________________ kexec mailing list [email protected] http://lists.infradead.org/mailman/listinfo/kexec
Quoted 6 lines · David Daney
From: David Daney <[email protected]>
When building configured as '--host=mips64-octeon-linux-gnu' using GCC-4.7.0 there are two compile errors, fix them.
Signed-off-by David Daney <[email protected]>
Thanks, is the first hunk also ok on 32bit?
Quoted 29 lines
--- kexec/arch/mips/crashdump-mips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kexec/arch/mips/crashdump-mips.c +2
-2@@ -83,7 +83,7 @@ static int get_kernel_vaddr_and_size(struct crash_elf_info *elf_info,dbgprintf ("kernel_vaddr= 0x%llx paddr %llx\n" , elf_info->kern_vaddr_start, elf_info->kern_paddr_start); -dbgprintf ("kernel size = 0x%llx\n" , elf_info->kern_size); +dbgprintf ("kernel size = 0x%lx\n" , elf_info->kern_size);return 0 ; }fprintf (stderr,"Cannot determine kernel virtual load addr and size\n" );@@ -356,7 +356,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,#ifdef __mips64if (arch_options.core_header_type ==CORE_TYPE_ELF64 ) { elf_info = &elf_info64; - crash_create = crash_create_elf64; + crash_create = crash_create_elf64_headers; start_offset =0xffffffff80000000UL ; }#endif Signature · 1 line
1.7.11.7
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Quoted 9 lines · Simon Horman
Quoted 6 lines · David Daney
From: David Daney <[email protected]>
When building configured as '--host=mips64-octeon-linux-gnu' using GCC-4.7.0 there are two compile errors, fix them.
Signed-off-by David Daney <[email protected]>Thanks, is the first hunk also ok on 32bit?
Yes, in crashdump.h kern_size is declared as type unsigned long, so the proper printf format is ABI independent and should be "%lx"
Quoted 22 lines
Quoted 22 lines
--- kexec/arch/mips/crashdump-mips.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)kexec/arch/mips/crashdump-mips.c +1
-1@@ -83,7 +83,7 @@ static int get_kernel_vaddr_and_size(struct crash_elf_info *elf_info,dbgprintf ("kernel_vaddr= 0x%llx paddr %llx\n" , elf_info->kern_vaddr_start, elf_info->kern_paddr_start); -dbgprintf ("kernel size = 0x%llx\n" , elf_info->kern_size); +dbgprintf ("kernel size = 0x%lx\n" , elf_info->kern_size);return 0 ; }fprintf (stderr,"Cannot determine kernel virtual load addr and size\n" );@@ -356,7 +356,7 @@ int load_crashdump_segments(struct kexec_info *info, char* mod_cmdline,#ifdef __mips64if (arch_options.core_header_type ==CORE_TYPE_ELF64 ) { elf_info = &elf_info64;
Quoted 9 lines
Quoted 8 lines
kexec/arch/mips/crashdump-mips.c +1
-2- crash_create = crash_create_elf64; + crash_create = crash_create_elf64_headers; start_offset = 0xffffffff80000000UL; }#endif --1.7.11.7
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Simon Horman
AppliedQuoted 7 lines · David Daney
Quoted 6 lines · Simon Horman
Quoted 5 lines · David Daney
From: David Daney <[email protected]>
When building configured as '--host=mips64-octeon-linux-gnu' using GCC-4.7.0 there are two compile errors, fix them.
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by David Daney <[email protected]>Thanks, is the first hunk also ok on 32bit?
Yes, in
crashdump.hkern_sizeis declared as type unsigned long, so the proper printf format is ABI independent and should be "%lx"
Thanks, applied.
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec