MIPS: Fix build error for crash_dump.c in 3.10-rc1
authorEunBong Song <eunb.song@samsung.com>
Mon, 13 May 2013 00:16:55 +0000 (00:16 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Fri, 17 May 2013 18:36:02 +0000 (20:36 +0200)
This patch fixes crash_dump.c build error. Build error logs are as follow.

arch/mips/kernel/crash_dump.c: In function 'kdump_buf_page_init':
arch/mips/kernel/crash_dump.c:67: error: implicit declaration of function 'kmalloc'
arch/mips/kernel/crash_dump.c:67: error: assignment makes pointer from integer without a cast

Signed-off-by: EunBong Song <eunb.song@samsung.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/5238/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/crash_dump.c

index 35bed0d2342c9a779ef5d0c12a3a8080938484f7..3be9e7bb30ff05dbfa1c4866d3decba0a69a8715 100644 (file)
@@ -2,6 +2,7 @@
 #include <linux/bootmem.h>
 #include <linux/crash_dump.h>
 #include <asm/uaccess.h>
+#include <linux/slab.h>
 
 static int __init parse_savemaxmem(char *p)
 {