[RFC 07/10] arm: allow passing an ELF64 header to elf_check_arch()
Russell King - ARM Linux
linux at arm.linux.org.uk
Mon Mar 29 17:12:08 EDT 2010
On Mon, Mar 29, 2010 at 12:26:33PM +0300, Mika Westerberg wrote:
> This is needed to shut following compiler warning when CONFIG_PROC_VMCORE is
> enabled:
>
> fs/proc/vmcore.c: In function 'parse_crash_elf64_headers':
> fs/proc/vmcore.c:500: warning: passing argument 1 of 'elf_check_arch' from
> incompatible pointer type
>
> ELF32 and ELF64 headers have common fields of same size (namely e_ident and
> e_machine) which are checked in arm_elf_check_arch().
A smaller patch:
-#define elf_check_arch elf_check_arch
+#define elf_check_arch(x) elf_check_arch((const struct elf32_hdr *)(x))
More information about the linux-arm-kernel
mailing list