crash_dump: Add vmcore_elf32_check_arch
authorDaniel Wagner <daniel.wagner@bmw-carit.de>
Thu, 11 Feb 2016 12:36:54 +0000 (13:36 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 13 May 2016 12:01:59 +0000 (14:01 +0200)
commite55d5312444087eb6bfb34c1cd5f6e0bf626cf26
treefc596a9ecb1881dc918b2fdc474d798c4e9ec43c
parent331ae5fc3eb439b4ef2e26c25c8d1431d74b7a6f
crash_dump: Add vmcore_elf32_check_arch

parse_crash_elf{32|64}_headers will check the headers via the
elf_check_arch respectively vmcore_elf64_check_arch macro.

The MIPS architecture implements those two macros differently.
In order to make the differentiation more explicit, let's introduce
an vmcore_elf32_check_arch to allow the archs to overwrite it.

Signed-off-by: Daniel Wagner <daniel.wagner@bmw-carit.de>
Suggested-by: Maciej W. Rozycki <macro@imgtec.com>
Reviewed-by: Maciej W. Rozycki <macro@imgtec.com>
Cc: linux-kernel@vger.kernel.org
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/12535/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
fs/proc/vmcore.c
include/linux/crash_dump.h