Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread Minfei Huang
On 09/17/15 at 05:32pm, yjin wrote: > > On 2015年09月16日 18:39, Minfei Huang wrote: > >On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > >>From: Yanjiang Jin > >> > >>Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > >>call parse_crash_elf64_headers() or

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread yjin
On 2015年09月16日 18:39, Minfei Huang wrote: On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But this happens in run time, not

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread yjin
On 2015年09月16日 18:39, Minfei Huang wrote: On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-17 Thread Minfei Huang
On 09/17/15 at 05:32pm, yjin wrote: > > On 2015年09月16日 18:39, Minfei Huang wrote: > >On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > >>From: Yanjiang Jin > >> > >>Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > >>call

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
Ccing kexec maillist. On 09/16/15 at 06:39pm, Minfei Huang wrote: > On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > > From: Yanjiang Jin > > > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > > call parse_crash_elf64_headers() or

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile time. So compiler will

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Dave Young
Cc kexec list. On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile time. So

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Dave Young
Cc kexec list. On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
Ccing kexec maillist. On 09/16/15 at 06:39pm, Minfei Huang wrote: > On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > > From: Yanjiang Jin > > > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > > call

Re: [PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-16 Thread Minfei Huang
On 09/16/15 at 10:58am, yanjiang@windriver.com wrote: > From: Yanjiang Jin > > Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to > call parse_crash_elf64_headers() or parse_crash_elf32_headers(). > But this happens in run time, not compile

[PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-15 Thread yanjiang.jin
From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But this happens in run time, not compile time. So compiler will report the below warning: In file included from

[PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-15 Thread yanjiang.jin
From: Yanjiang Jin Already verified this patch on a MIPS64 cavium octeon board: CN78XX. This patch is to eliminate the compile warning only, has no side effect in run-time. Yanjiang Jin (1): vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr fs/proc/vmcore.c | 4 ++-- 1 file changed, 2

[PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-15 Thread yanjiang.jin
From: Yanjiang Jin Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to call parse_crash_elf64_headers() or parse_crash_elf32_headers(). But this happens in run time, not compile time. So compiler will report the below warning: In file included

[PATCH] vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr

2015-09-15 Thread yanjiang.jin
From: Yanjiang Jin Already verified this patch on a MIPS64 cavium octeon board: CN78XX. This patch is to eliminate the compile warning only, has no side effect in run-time. Yanjiang Jin (1): vmcore: replace Elf64_Ehdr/Elf32_Ehdr with elfhdr fs/proc/vmcore.c | 4