linux-mips
[Top] [All Lists]

[PATCH ] MIPS: Fix build error crash_dump.c file.

To: "ralf@linux-mips.org" <ralf@linux-mips.org>, "linux-mips@linux-mips.org" <linux-mips@linux-mips.org>
Subject: [PATCH ] MIPS: Fix build error crash_dump.c file.
From: EUNBONG SONG <eunb.song@samsung.com>
Date: Thu, 02 May 2013 08:25:53 +0000 (GMT)
Cc: "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, lars@metafoo.de
Dlp-filter: Pass
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Msgkey: 20130502081709416@eunb.song
Original-recipient: rfc822;linux-mips@linux-mips.org
Reply-to: eunb.song@samsung.com
Sender: linux-mips-bounce@linux-mips.org
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'
cc1: warnings being treated as errors
arch/mips/kernel/crash_dump.c:67: error: assignment makes pointer from integer 
without a cast
make[3]: *** [arch/mips/kernel/crash_dump.o] Error 1
make[2]: *** [arch/mips/kernel] Error 2
make[1]: *** [arch/mips] Error 2
make[1]: *** Waiting for unfinished jobs....
  CC      kernel/sys.o
  CC      kernel/module.o
  GZIP    kernel/config_data.gz
  CHK     kernel/config_data.h
  LD      kernel/built-in.o


Signed-off-by: Eunbong Song <eunb.song@samsung.com>
---
 arch/mips/kernel/crash_dump.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/mips/kernel/crash_dump.c b/arch/mips/kernel/crash_dump.c
index 35bed0d..3be9e7b 100644
--- a/arch/mips/kernel/crash_dump.c
+++ b/arch/mips/kernel/crash_dump.c
@@ -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)
 {
-- 
1.7.0.4
<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH ] MIPS: Fix build error crash_dump.c file., EUNBONG SONG <=