Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
It seems the last mail has been blocked, resend it. On 2015年09月21日 10:16, yjin wrote: The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang...

Re: [PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-20 Thread yjin
The new version patch only modifies mips/elf.h, so add Ralf Baechle and cc linux-m...@linux-mips.org. This is a V2 patch, attach the V1 patch for reference. Thanks! Yanjiang On 2015年09月18日 15:42, yanjiang@windriver.com wrote: From: Yanjiang Jin elf_check_arch() will be called both in par

[PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-18 Thread yanjiang.jin
From: Yanjiang Jin elf_check_arch() will be called both in parse_crash_elf64_headers() and parse_crash_elf32_headers(). But in these two functions, the type of the parameter ehdr is different: Elf32_Ehdr and Elf64_Ehdr. Function parse_crash_elf_headers() reads e_ident[EI_CLASS] then decides to c

[V2 PATCH] mips: vmcore: forced convert 'hdr' in elf_check_arch()

2015-09-18 Thread yanjiang.jin
From: Yanjiang Jin V1->V2: According to Minfei's suggestion, coverting in the Macro rather than in vmcore.c. 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): mips: vmco