]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6e6247e2c3c8f1324bcd01e1aab56eeb86ee50d1
treefc596a9ecb1881dc918b2fdc474d798c4e9ec43c
parent09752fc3ca93028a7cc8b9af6d839bfd5ed48309
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